/* ============================================
   Mobile Only Styles - 390px Fixed Width
   모두의권리 모바일 전용 디자인
   ============================================ */

/* ==================== Reset & Base ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    width: 100%;
    height: 100%;
}

body {
    width: 100%;
    min-height: 100%;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #000000;
    background-color: #FFFFFF;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    overflow-y: auto;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
    border: none;
    background: none;
    cursor: pointer;
}

/* ==================== App Wrapper ==================== */
.app-wrapper {
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    background-color: #F0F0F0;
}

.app-container {
    width: 100%;
    max-width: 390px;
    min-height: 100vh;
    background-color: #FFFFFF;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* ==================== App Header ==================== */
.app-header {
    width: 100%;
    height: 64px;
    padding: 18px 22px;
    background-color: #F4FBFB;
    display: flex;
    align-items: center;
    justify-content: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.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;
}

.header-back-btn svg {
    width: 10px;
    height: 17px;
    color: #000000;
}

.header-title {
    font-size: 18px;
    font-weight: 700;
    color: #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;
}

.header-menu-btn svg {
    width: 16px;
    height: 18px;
    color: #000000;
}

/* ==================== App Main ==================== */
.app-main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* ==================== App Footer ==================== */
.app-footer {
    width: 100%;
    padding: 20px;
    background-color: #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: #000000;
    text-decoration: underline;
    line-height: 20px;
}

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

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

.bottom-nav .nav-item.active {
    background-color: #F4FBFB;
    border-top-color: #0299B0;
}

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

.bottom-nav .nav-item-icon svg {
    width: 100%;
    height: 100%;
    color: #000000;
}

.bottom-nav .nav-item-label {
    font-size: 12px;
    font-weight: 500;
    color: #000000;
    text-align: center;
}

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

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

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

.hero-title {
    width: 100%;
    font-size: 24px;
    font-weight: 700;
    color: #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: #000000;
    background: transparent;
}

.search-input::placeholder {
    color: #000000;
}

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

.search-icon-btn svg {
    width: 22px;
    height: 22px;
    color: #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;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.filter-chip:hover {
    border-color: #0299B0;
}

.filter-chip.active {
    background-color: #0299B0;
    border-color: #0299B0;
}

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

.filter-chip.active .filter-chip-icon svg {
    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;
    color: #666666;
}

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

.map-container {
    width: 100%;
    height: 100vw;
    max-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%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    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;
    color: #666666;
}

/* Map Cluster Marker */
.map-cluster-marker {
    width: 30px;
    height: 30px;
    background-color: #0299B0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

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

/* Single Marker (개별 마커) */
.map-single-marker {
    width: 24px;
    height: 24px;
    background-color: #0299B0;
    border-radius: 50%;
    border: 3px solid #FFFFFF;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

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

.section-title {
    font-size: 17px;
    font-weight: 700;
    color: #000000;
    margin: 0;
}

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

.card-list {
    width: 100%;
    display: flex;
    gap: 10px;
    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: 370px;
    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(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.place-card-image {
    width: 370px;
    height: 287px;
    object-fit: cover;
    background-color: #F0F0F0;
}

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

.place-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #000000;
    margin: 0 0 8px 0;
}

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

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

.place-card-price {
    font-size: 15px;
    font-weight: 700;
    color: #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;
}

/* Empty Message */
.empty-message {
    width: 100%;
    padding: 20px;
    text-align: center;
    color: #666666;
    font-size: 14px;
}

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

.cta-button {
    width: 100%;
    max-width: 350px;
    height: 48px;
    padding: 4px;
    background-color: #0299B0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

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

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

/* ==================== Form Components ==================== */
.form-group {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.form-label {
    font-size: 14px;
    font-weight: 400;
    color: #000000;
    line-height: 16.7px;
}

.form-input {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 1px solid #808080;
    border-radius: 8px;
    background-color: #FFFFFF;
    font-size: 14px;
    font-family: inherit;
}

.form-input::placeholder {
    color: #808080;
}

.form-input:focus {
    outline: none;
    border-color: #0299B0;
    box-shadow: 0 0 0 2px rgba(2, 153, 176, 0.2);
}

/* ==================== Button Components ==================== */
.btn {
    width: 100%;
    height: 48px;
    border-radius: 8px;
    border: none;
    font-weight: 700;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
}

.btn:hover {
    opacity: 0.9;
}

.btn-primary {
    background-color: #0299B0;
    color: #FFFFFF;
}

.btn-secondary {
    background-color: #F2F4F6;
    color: #666666;
}

.btn-outline {
    background-color: #FFFFFF;
    color: #0299B0;
    border: 1px solid #0299B0;
}

.btn:disabled {
    background-color: #F2F4F6;
    color: #808080;
    border: 1px solid #808080;
    cursor: not-allowed;
}