/* ============================================
   Index Page Styles - 모두의권리
   ============================================ */

/* ==================== Header ==================== */
.app-header {
    width: 100%;
    height: 64px;
    padding: 18px 22px;
    background-color: var(--color-background-mint-light, #F4FBFB);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.header-left {
    position: absolute;
    left: 22px;
    display: flex;
    align-items: center;
}

.header-back-btn {
    width: 18px;
    height: 24px;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
}

.header-back-btn svg {
    width: 10px;
    height: 17px;
    fill: var(--color-black, #000000);
}

.header-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-black, #000000);
    text-align: center;
}

.header-right {
    position: absolute;
    right: 22px;
    display: flex;
    align-items: center;
}

.header-menu-btn {
    width: 24px;
    height: 24px;
    padding: 3px 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
}

.header-menu-btn svg {
    width: 16px;
    height: 18px;
    fill: var(--color-black, #000000);
}

/* ==================== Hero Section ==================== */
.hero-section {
    width: 100%;
    padding: 12px 20px;
    background-color: #F4FBFB;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-content {
    width: 100%;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.hero-title-wrapper {
    width: 100%;
    max-width: 342px;
    padding: 4px 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-title {
    width: 100%;
    font-size: 24px;
    font-weight: 700;
    color: var(--color-black, #000000);
    line-height: 1.4;
    margin: 0;
}

/* ==================== Search Section ==================== */
.search-section {
    width: 100%;
    padding: 10px 24px 24px;
    background-color: #F4FBFB;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.search-input-wrapper {
    width: 100%;
    height: 40px;
    padding: 10px;
    background-color: #FFFFFF;
    border-radius: 12px;
    border: 1px solid #E0E0E0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 13px;
    font-weight: 400;
    color: var(--color-black, #000000);
    background: transparent;
}

.search-input::placeholder {
    color: var(--color-black, #000000);
}

.search-icon-btn {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.search-icon-btn svg {
    width: 22px;
    height: 22px;
    fill: #808080;
}

/* Filter Chips */
.filter-chips {
    width: 100%;
    height: 44px;
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.filter-chips::-webkit-scrollbar {
    display: none;
}

.filter-chip {
    height: 36px;
    padding: 0 16px;
    background-color: #FFFFFF;
    border-radius: 12px;
    border: 1px solid #E0E0E0;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.filter-chip:hover {
    border-color: var(--color-primary, #0299B0);
}

.filter-chip.active {
    background-color: var(--color-primary, #0299B0);
    border-color: var(--color-primary, #0299B0);
}

.filter-chip.active .filter-chip-text {
    color: #FFFFFF;
}

.filter-chip-text {
    font-size: 13px;
    font-weight: 400;
    color: #666666;
    line-height: 19.5px;
    white-space: nowrap;
}

.filter-chip-icon {
    width: 14px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.filter-chip-icon svg {
    width: 7px;
    height: 4px;
    stroke: #666666;
    stroke-width: 1.17px;
    fill: none;
}

/* ==================== Map Section ==================== */
.map-section {
    width: 100%;
    position: relative;
}

.map-container {
    width: 100%;
    height: 390px;
    position: relative;
}

#map {
    width: 100%;
    height: 100%;
}

/* Current Location Button */
.current-location-btn {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 38px;
    height: 38px;
    background-color: #FFFFFF;
    border-radius: 50%;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.current-location-btn:hover {
    background-color: #F5F5F5;
}

.current-location-btn svg {
    width: 20px;
    height: 20px;
    fill: #666666;
}

/* Map Cluster Marker */
.map-cluster-marker {
    width: 30px;
    height: 30px;
    background-color: var(--color-primary, #0299B0);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-cluster-marker span {
    font-size: 11px;
    font-weight: 700;
    color: #FFFFFF;
    text-align: center;
}

/* ==================== Content Sections ==================== */
.content-section {
    width: 100%;
    padding: 30px 20px 20px;
}

.section-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--color-black, #000000);
    margin: 0;
}

/* Card List - Horizontal Scroll */
.card-list-wrapper {
    width: 100%;
    padding: 10px;
}

.card-list {
    width: 100%;
    display: flex;
    gap: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
}

.card-list::-webkit-scrollbar {
    height: 4px;
}

.card-list::-webkit-scrollbar-track {
    background: #F1F1F1;
    border-radius: 2px;
}

.card-list::-webkit-scrollbar-thumb {
    background: #CCCCCC;
    border-radius: 2px;
}

/* Place Card */
.place-card {
    flex: 0 0 auto;
    width: 350px;
    border-radius: 12px;
    overflow: hidden;
    background-color: #FFFFFF;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.place-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.place-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background-color: #F0F0F0;
}

.place-card-content {
    padding: 16px;
}

.place-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.place-card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-black, #000000);
    margin: 0;
}

.place-card-category {
    padding: 4px 8px;
    background-color: #4CAF50;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    color: #FFFFFF;
    white-space: nowrap;
}

.place-card-address {
    font-size: 13px;
    color: #666666;
    margin: 0 0 12px 0;
}

.place-card-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
}

.place-card-label {
    font-size: 14px;
    font-weight: 400;
    color: #666666;
}

.place-card-value {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-black, #000000);
}

.place-card-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.place-card-price {
    font-size: 15px;
    font-weight: 700;
    color: var(--color-primary, #0299B0);
}

.place-card-trend {
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.place-card-trend.up {
    color: #E57373;
}

.place-card-trend.down {
    color: #64B5F6;
}

/* ==================== CTA Button Section ==================== */
.cta-section {
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cta-button {
    width: 350px;
    height: 48px;
    padding: 4px;
    background-color: var(--color-primary, #0299B0);
    border-radius: 8px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.cta-button:hover {
    background-color: #027A8F;
}

.cta-button span {
    font-size: 18px;
    font-weight: 700;
    color: #FFFFFF;
}

/* ==================== Footer ==================== */
.app-footer {
    width: 100%;
    padding: 20px;
    background-color: var(--color-background-mint-light, #F4FBFB);
}

.footer-info {
    font-size: 14px;
    font-weight: 400;
    color: #808080;
    line-height: 20px;
    margin: 0;
}

.footer-link {
    padding: 10px 0;
    display: inline-flex;
    align-items: center;
}

.footer-link a {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-black, #000000);
    text-decoration: underline;
    line-height: 20px;
}

.footer-link a:hover {
    color: var(--color-primary, #0299B0);
}

/* ==================== Bottom Navigation ==================== */
.bottom-nav {
    width: 100%;
    display: flex;
    position: sticky;
    bottom: 0;
    background-color: #FFFFFF;
    z-index: 100;
}

.nav-item {
    flex: 1;
    height: 60px;
    padding: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    border-top: 2px solid #E0E0E0;
    background-color: #FFFFFF;
    transition: all 0.2s ease;
}

.nav-item.active {
    background-color: var(--color-background-mint-light, #F4FBFB);
    border-top-color: var(--color-primary, #0299B0);
}

.nav-item-icon {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-item-icon svg {
    width: 100%;
    height: 100%;
    fill: var(--color-black, #000000);
}

.nav-item-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--color-black, #000000);
    text-align: center;
}

/* ==================== Utility Classes ==================== */
.section-gap-sm {
    margin-bottom: 10px;
}

.section-gap-md {
    margin-bottom: 20px;
}

.section-gap-lg {
    margin-bottom: 30px;
}

/* ==================== Filter Bottom Sheet ==================== */
.filter-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: var(--z-modal-backdrop, 1040);
}

.filter-overlay.show {
    display: block;
}

.filter-bottom-sheet {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 100%);
    width: 100%;
    max-width: 390px;
    max-height: 85vh;
    background-color: #FFFFFF;
    border-radius: 20px 20px 0 0;
    z-index: var(--z-modal, 1050);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.filter-bottom-sheet.show {
    transform: translate(-50%, 0);
}

.sheet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px 16px;
    flex-shrink: 0;
}

.sheet-title {
    font-size: 18px;
    font-weight: 700;
    color: #1E2124;
    margin: 0;
}

.sheet-close-btn {
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.sheet-body {
    padding: 0 24px 16px;
    overflow-y: auto;
    flex: 1;
}

.sheet-footer {
    padding: 16px 24px 24px;
    flex-shrink: 0;
}

.sheet-submit-btn {
    width: 100%;
    height: 52px;
    background-color: var(--color-primary, #0299B0);
    border: none;
    border-radius: 12px;
    color: #FFFFFF;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.sheet-submit-btn:hover {
    background-color: #027A8F;
}

/* Filter Form */
.filter-form-group {
    margin-bottom: 16px;
}

.filter-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #1E2124;
    margin-bottom: 8px;
}

.filter-select {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 1px solid #E0E0E0;
    border-radius: 12px;
    font-size: 15px;
    font-family: 'Pretendard', sans-serif;
    color: #1E2124;
    background-color: #FFFFFF;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23808080' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    cursor: pointer;
    outline: none;
}

.filter-select:focus {
    border-color: var(--color-primary, #0299B0);
}

/* Range Slider */
.range-display {
    text-align: center;
    margin-bottom: 16px;
}

.range-value-text {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-primary, #0299B0);
}

.range-slider-wrapper {
    position: relative;
    height: 40px;
    display: flex;
    align-items: center;
}

.range-track {
    position: absolute;
    height: 4px;
    background-color: var(--color-primary, #0299B0);
    border-radius: 2px;
    z-index: 1;
    pointer-events: none;
    top: 50%;
    transform: translateY(-50%);
}

.range-input {
    position: absolute;
    width: 100%;
    height: 4px;
    background: transparent;
    -webkit-appearance: none;
    appearance: none;
    pointer-events: none;
    z-index: 2;
    margin: 0;
}

.range-input::-webkit-slider-runnable-track {
    height: 4px;
    background: #E0E0E0;
    border-radius: 2px;
}

.range-input.range-max::-webkit-slider-runnable-track {
    background: transparent;
}

.range-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    background: #FFFFFF;
    border: 2px solid var(--color-primary, #0299B0);
    border-radius: 50%;
    cursor: pointer;
    pointer-events: all;
    margin-top: -10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.range-input::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: #FFFFFF;
    border: 2px solid var(--color-primary, #0299B0);
    border-radius: 50%;
    cursor: pointer;
    pointer-events: all;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.range-labels {
    display: flex;
    justify-content: space-between;
    padding: 4px 0 20px;
}

.range-labels span {
    font-size: 11px;
    color: #808080;
}

/* Quick Select Grid */
.quick-select-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.quick-btn {
    height: 44px;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    background-color: #FFFFFF;
    font-size: 14px;
    font-family: 'Pretendard', sans-serif;
    color: #1E2124;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quick-btn:hover {
    border-color: var(--color-primary, #0299B0);
}

.quick-btn.active {
    background-color: var(--color-primary, #0299B0);
    border-color: var(--color-primary, #0299B0);
    color: #FFFFFF;
    font-weight: 700;
}

/* ==================== Mobile Responsive ==================== */
@media (max-width: 390px) {
    .hero-section {
        padding: 12px 20px;
    }

    .hero-title-wrapper {
        width: 100%;
        max-width: 100%;
    }

    .search-section {
        padding: 10px 20px 24px;
    }

    .cta-button {
        width: 100%;
        max-width: 350px;
    }

    .place-card {
        width: calc(100vw - 40px);
        max-width: 350px;
    }
}