/* DondeLoGuardo - Premium Storage Platform */
/* Corp-Grade Airbnb-Inspired Design */

:root {
    --primary: #FF385C;
    --primary-dark: #E31B5F;
    --primary-light: rgba(255, 56, 92, 0.1);
    --accent: #00A699;
    --bg: #FFFFFF;
    --bg-secondary: #F7F7F7;
    --bg-tertiary: #EBEBEB;
    --text: #222222;
    --text-secondary: #717171;
    --text-light: #B0B0B0;
    --border: #E8E8E8;
    --border-dark: #DDDDDD;
    --success: #008A05;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --shadow-xl: 0 16px 48px rgba(0,0,0,0.16);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    --radius-2xl: 28px;
    --radius-full: 9999px;
    --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    overflow-x: hidden;
}

/* ==================== HEADER ==================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 68px;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--primary);
    font-weight: 800;
    font-size: 18px;
    letter-spacing: -0.5px;
}

.logo-icon {
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 2px 8px rgba(255, 56, 92, 0.3);
}

.header-nav {
    display: flex;
    gap: 32px;
}

.nav-link {
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.icon-btn {
    width: 38px;
    height: 38px;
    border: none;
    background: transparent;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text);
    transition: var(--transition);
}

.icon-btn:hover {
    background: var(--bg-secondary);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-host {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border-dark);
}

.btn-host:hover {
    background: var(--bg-secondary);
    border-color: var(--text);
}

/* ==================== HERO ==================== */
.hero {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 100px 24px 60px;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, #FAFAFA 0%, #FFFFFF 50%, rgba(255,56,92,0.02) 100%);
}

.hero-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(0,0,0,0.03) 1px, transparent 0);
    background-size: 32px 32px;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    width: 100%;
    max-width: 680px;
}

.hero-title {
    font-size: clamp(36px, 7vw, 56px);
    font-weight: 800;
    color: var(--text);
    line-height: 1.1;
    margin-bottom: 16px;
    letter-spacing: -1.5px;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 48px;
    font-weight: 400;
}

/* ==================== SEARCH BAR ==================== */
.search-container {
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
}

.search-bar {
    background: white;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg), 0 0 0 1px var(--border);
    padding: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
    position: relative;
    transition: box-shadow 0.3s ease;
}

.search-bar:focus-within {
    box-shadow: var(--shadow-xl), 0 0 0 2px var(--primary);
}

.search-input-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
}

.search-icon {
    color: var(--primary);
    flex-shrink: 0;
}

.search-field {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
    outline: none;
}

.search-field::placeholder {
    color: var(--text-light);
}

.search-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    border-radius: var(--radius-xl);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(255, 56, 92, 0.25);
}

.search-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(255, 56, 92, 0.35);
}

.search-btn:active {
    transform: translateY(0);
}

/* Autocomplete */
.autocomplete-wrapper {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: var(--transition);
    z-index: 10000;
    overflow: hidden;
    border: 1px solid var(--border);
    max-height: 60vh;
    overflow-y: auto;
}

.autocomplete-wrapper.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .autocomplete-wrapper {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        border-radius: var(--radius-xl) var(--radius-xl) 0 0;
        max-height: 50vh;
        transform: translateY(100%);
    }
    
    .autocomplete-wrapper.active {
        transform: translateY(0);
    }
}

.autocomplete-header {
    padding: 12px 16px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border-bottom: 1px solid var(--border);
}

.autocomplete-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    cursor: pointer;
    transition: background 0.15s;
}

.autocomplete-item:hover {
    background: var(--bg-secondary);
}

.autocomplete-icon {
    width: 42px;
    height: 42px;
    background: var(--primary-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.autocomplete-text {
    flex: 1;
}

.autocomplete-city {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
}

.autocomplete-country {
    font-size: 13px;
    color: var(--text-secondary);
}

/* ==================== RESULTS ==================== */
.results-section {
    padding: 24px 24px 100px;
    min-height: 100vh;
    display: none;
    max-width: 1200px;
    margin: 0 auto;
}

.results-section.active {
    display: block;
}

.results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    padding-top: 80px;
}

.results-count {
    font-size: 14px;
    color: var(--text-secondary);
}

.results-count strong {
    color: var(--text);
    font-weight: 600;
}

.back-btn {
    width: 40px;
    height: 40px;
    background: var(--bg-secondary);
    border-radius: 50%;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

/* ==================== LISTING CARD ==================== */
.listing-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

.listing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.listing-image-wrapper {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--bg-secondary);
}

.listing-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.listing-card:hover .listing-image {
    transform: scale(1.05);
}

.listing-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--primary);
    color: white;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.listing-favorite {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text);
    backdrop-filter: blur(8px);
}

.listing-favorite:hover {
    transform: scale(1.1);
}

.listing-favorite.active {
    color: var(--primary);
}

.listing-favorite.active svg {
    fill: currentColor;
}

.listing-info {
    padding: 16px;
}

.listing-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 500;
}

.listing-rating svg {
    width: 12px;
    height: 12px;
    fill: var(--text);
}

.listing-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.listing-location {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.listing-meta {
    display: flex;
    gap: 14px;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.listing-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.listing-price {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
}

.listing-price span {
    font-weight: 400;
    color: var(--text-secondary);
    font-size: 14px;
}

/* ==================== MODAL ==================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 2001;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Ensure floating bar is above modal content */
.modal.active .floating-book-bar {
    z-index: 2003;
}

/* Hide floating bar when modal is not active */
.modal .floating-book-bar {
    display: none;
}

.modal.active .floating-book-bar {
    display: flex;
}

@media (min-width: 768px) {
    .modal.active .floating-book-bar {
        display: flex;
    }
}

.modal-content {
    background: white;
    width: 100%;
    max-width: 960px;
    max-height: 92vh;
    border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
    position: relative;
}

.modal.active .modal-content {
    transform: translateY(0);
}

@media (min-width: 768px) {
    .modal {
        align-items: center;
        padding: 32px;
    }
    
    .modal-content {
        border-radius: var(--radius-2xl);
        max-height: 88vh;
    }
}

/* Booking Flow Modal */
.booking-flow-content {
    background: white;
    border-radius: 16px;
    width: calc(100% - 32px);
    max-width: 400px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 16px;
    position: relative;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

@media (max-width: 767px) {
    .booking-flow-content {
        max-height: calc(100vh - 40px);
        padding: 14px;
        border-radius: 14px 14px 0 0;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-width: none;
    }
}

.modal-handle {
    width: 40px;
    height: 4px;
    background: var(--border-dark);
    border-radius: 2px;
    margin: 14px auto;
}

@media (min-width: 768px) {
    .modal-handle {
        display: none;
    }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    background: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: all 0.2s ease;
    z-index: 10;
    color: var(--text);
}

.modal-close:hover {
    transform: scale(1.05);
}

.modal-gallery {
    position: relative;
    aspect-ratio: 16/10;
    background: var(--bg-secondary);
    overflow: hidden;
}

@media (min-width: 768px) {
    .modal-gallery {
        aspect-ratio: 16/8;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    }
}

.modal-gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    background: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: all 0.2s ease;
    color: var(--text);
}

.modal-gallery-nav:hover {
    transform: translateY(-50%) scale(1.05);
}

.modal-gallery-nav.prev {
    left: 14px;
}

.modal-gallery-nav.next {
    right: 14px;
}

.modal-gallery-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}

.modal-gallery-dot {
    width: 6px;
    height: 6px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-gallery-dot.active {
    background: white;
    width: 20px;
    border-radius: 3px;
}

.modal-body {
    padding: 24px;
    display: grid;
    gap: 32px;
}

@media (min-width: 768px) {
    .modal-body {
        padding: 32px;
        display: grid;
        grid-template-columns: 1fr 360px;
        gap: 48px;
    }
}

.modal-main h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: -0.5px;
}

.modal-main .location {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.modal-divider {
    height: 1px;
    background: var(--border);
    margin: 24px 0;
}

.modal-host {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
}

.modal-host-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
}

.modal-host-info h4 {
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.host-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--primary);
    color: white;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    font-size: 10px;
    font-weight: 600;
}

.modal-host-info p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.modal-section-title {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 14px;
}

.modal-description {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text);
}

.modal-amenities {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-top: 16px;
}

.amenity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--text);
}

.amenity-item svg {
    width: 18px;
    height: 18px;
    color: var(--text-secondary);
}

/* ==================== BOOKING CARD ==================== */
.booking-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 24px;
    box-shadow: var(--shadow-xl);
    position: sticky;
    top: 84px;
}

.booking-price {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text);
}

.booking-price span {
    font-weight: 400;
    font-size: 15px;
    color: var(--text-secondary);
}

.booking-details {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 14px;
    margin-bottom: 20px;
}

.booking-detail-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text);
}

.booking-detail-row:not(:last-child) {
    margin-bottom: 8px;
}

.booking-detail-row svg {
    color: var(--primary);
}

.booking-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(255, 56, 92, 0.3);
}

.booking-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 56, 92, 0.4);
}

.booking-btn:active {
    transform: translateY(0);
}

.booking-note {
    text-align: center;
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 14px;
}

/* ==================== BOOKING FLOW MODAL ==================== */
.booking-flow-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.booking-flow-modal.active {
    opacity: 1;
    visibility: visible;
}

.booking-flow-content .modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
}

/* Progress Steps */
.booking-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 16px;
    padding: 0 12px;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.step-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.progress-step.active .step-number {
    background: var(--primary);
    color: white;
}

.progress-step.completed .step-number {
    background: var(--success);
    color: white;
}

.step-label {
    font-size: 10px;
    color: var(--text-secondary);
    font-weight: 500;
}

.progress-step.active .step-label {
    color: var(--primary);
    font-weight: 600;
}

.progress-line {
    width: 40px;
    height: 2px;
    background: var(--border);
    margin: 0 6px;
    margin-bottom: 16px;
}

/* Booking Steps */
.booking-step {
    display: none;
}

.booking-step.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

#successStep.active {
    display: block !important;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateX(10px); }
    to { opacity: 1; transform: translateX(0); }
}

.booking-step h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
    text-align: center;
}

.step-desc {
    font-size: 13px;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 16px;
}

/* Size Options */
.size-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.size-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.size-option:hover {
    background: var(--bg-tertiary);
}

.size-option.selected {
    border-color: var(--primary);
    background: var(--primary-light);
}

.size-icon {
    width: 48px;
    height: 48px;
    background: white;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.size-option.selected .size-icon {
    background: var(--primary);
    color: white;
}

.size-info {
    flex: 1;
}

.size-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
}

.size-desc {
    font-size: 13px;
    color: var(--text-secondary);
}

.size-check {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    transition: all 0.2s ease;
}

.size-option.selected .size-check {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* Navigation Buttons */
.btn-next, .btn-confirm {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 24px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-next:hover, .btn-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 56, 92, 0.35);
}

.step-buttons {
    display: flex;
    gap: 12px;
}

.btn-back {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 16px 20px;
    background: var(--bg-secondary);
    color: var(--text);
    border: none;
    border-radius: var(--radius-lg);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-back:hover {
    background: var(--bg-tertiary);
}

.step-buttons .btn-next {
    flex: 1;
}

/* Payment Form Spacing */
.payment-form {
    margin-bottom: 20px;
}

/* Date Inputs */
.date-input-group {
    margin-bottom: 16px;
}

.date-input-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.date-input-group input,
.date-input-group select {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid var(--primary);
    border-radius: var(--radius-md);
    font-size: 15px;
    background: white;
    color: var(--text);
    transition: all 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}

.date-input-group input[type="date"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23717171' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'%3E%3C/rect%3E%3Cline x1='16' y1='2' x2='16' y2='6'%3E%3C/line%3E%3Cline x1='8' y1='2' x2='8' y2='6'%3E%3C/line%3E%3Cline x1='3' y1='10' x2='21' y2='10'%3E%3C/line%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 44px;
}

.date-input-group input:hover,
.date-input-group select:hover {
    border-color: var(--primary-dark);
}

.date-input-group input:focus,
.date-input-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

/* Summary */
.booking-summary {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 24px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.summary-item:not(:last-child) {
    border-bottom: 1px solid var(--border);
}

.summary-label {
    font-size: 14px;
    color: var(--text-secondary);
}

.summary-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.summary-divider {
    height: 1px;
    background: var(--border);
    margin: 8px 0;
}

.summary-item.total {
    padding-top: 14px;
}

.summary-item.total .summary-label {
    font-weight: 600;
    color: var(--text);
}

.summary-item.total .summary-value {
    font-size: 18px;
    color: var(--primary);
}

/* Payment */
.payment-methods {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.payment-method {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
}

.payment-method:hover {
    background: var(--bg-tertiary);
}

.payment-method.active {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary);
}

.card-inputs {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.card-input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.card-input-group label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-input-group input {
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 15px;
    background: white;
    color: var(--text);
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.card-input-group input:hover {
    border-color: var(--border-dark);
}

.card-input-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 56, 92, 0.1);
}

.card-row {
    display: grid;
    grid-template-columns: 1fr 100px;
    gap: 12px;
}

/* Success */
#successStep {
    text-align: center;
    padding: 24px 0;
}

.success-icon {
    width: 72px;
    height: 72px;
    background: rgba(0, 138, 5, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: #008A05;
}

#successStep h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
}

#successStep .step-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.success-details {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 16px;
    margin: 20px 0;
    text-align: left;
}

.success-detail {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text);
}

.success-detail:not(:last-child) {
    margin-bottom: 10px;
}

.success-detail svg {
    color: var(--primary);
}

.success-detail strong {
    font-weight: 700;
}

.btn-done {
    width: 100%;
    padding: 14px 24px;
    background: var(--text);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-done:hover {
    background: #000;
}

/* ==================== FEATURES ==================== */
.features-section {
    padding: 80px 24px;
    background: var(--bg-secondary);
}

.features-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.feature-card {
    text-align: center;
    padding: 32px 24px;
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-light), rgba(255, 56, 92, 0.05));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary);
}

.feature-title {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 10px;
}

.feature-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ==================== FOOTER ==================== */
.footer {
    background: white;
    border-top: 1px solid var(--border);
    padding: 48px 24px 32px;
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--primary);
    font-weight: 800;
    font-size: 18px;
    margin-bottom: 24px;
}

.footer-logo .logo-icon {
    width: 30px;
    height: 30px;
    font-size: 14px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 28px;
    margin-bottom: 28px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--text);
}

.footer-copy {
    font-size: 12px;
    color: var(--text-light);
}

@media (max-width: 767px) {
    .footer {
        margin-top: auto;
        padding: 8px 16px;
        max-height: 13vh;
        overflow: hidden;
        display: flex;
        align-items: center;
    }
    
    .footer-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 3px;
        margin-top: 0;
        margin-bottom: 0;
    }
    
    .footer-logo {
        font-size: 13px;
        margin: 0;
    }
    
    .footer-logo .logo-icon {
        width: 20px;
        height: 20px;
    }
    
    .footer-links {
        gap: 3px 12px;
        margin: 0;
    }
    
    .footer-links a {
        font-size: 11px;
    }
    
    .footer-copy {
        font-size: 10px;
    }
}

@media (max-width: 767px) {
    body {
        display: flex;
        flex-direction: column;
        min-height: 100vh;
        min-height: 100dvh;
    }
    
    .hero {
        flex: 1;
    }
    
    .footer {
        flex-shrink: 0;
    }
}

/* ==================== ANIMATIONS ==================== */
.listing-card {
    opacity: 0;
    animation: slideUp 0.5s ease forwards;
}

.listing-card:nth-child(1) { animation-delay: 0.05s; }
.listing-card:nth-child(2) { animation-delay: 0.1s; }
.listing-card:nth-child(3) { animation-delay: 0.15s; }
.listing-card:nth-child(4) { animation-delay: 0.2s; }
.listing-card:nth-child(5) { animation-delay: 0.25s; }
.listing-card:nth-child(6) { animation-delay: 0.3s; }

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(24px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hide scrollbar */
.modal-content::-webkit-scrollbar,
.booking-flow-content::-webkit-scrollbar {
    width: 0;
    background: transparent;
}

/* Floating Book Bar */
.floating-book-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #e8e8e8;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 2002;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
}

@media (min-width: 768px) {
    .floating-book-bar {
        bottom: 20px;
        left: auto;
        right: 20px;
        width: 280px;
        background: white;
        border-radius: 14px;
        border: 1px solid #e8e8e8;
        box-shadow: 0 8px 30px rgba(0,0,0,0.12);
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 16px;
    }
}

.floating-price {
    font-size: 20px;
    font-weight: 800;
    color: var(--text);
}

.floating-period {
    font-weight: 400;
    font-size: 14px;
    color: var(--text-secondary);
}

.floating-reservar-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, #FF385C 0%, #E31B5F 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 3px 10px rgba(255, 56, 92, 0.3);
}

@media (min-width: 768px) {
    .floating-reservar-btn {
        width: 100%;
    }
}

.floating-reservar-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(255, 56, 92, 0.4);
}

.floating-reservar-btn:active {
    transform: translateY(0);
}

/* Duration Select Styling */
select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23717171' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px !important;
}

/* Booking Summary Grid */
.booking-summary {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 16px;
    margin-bottom: 20px;
}

.summary-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px;
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
}

.summary-toggle svg {
    transition: transform 0.3s ease;
}

.summary-toggle svg.rotated {
    transform: rotate(180deg);
}

.summary-content {
    max-height: 500px;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

.summary-content.collapsed {
    max-height: 0;
    opacity: 0;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-row.total-row {
    padding-top: 14px;
    margin-top: 6px;
}

.summary-row.total-row .summary-label {
    font-weight: 700;
    font-size: 15px;
    color: var(--text);
}

.summary-row.total-row .summary-value {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary);
}

.summary-label {
    font-size: 13px;
    color: var(--text-secondary);
}

.summary-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    text-align: right;
}

/* Responsive */
@media (max-width: 768px) {
    .header-nav {
        display: none;
    }
    
    .header-actions .icon-btn,
    .header-actions .btn-host {
        display: none;
    }
    
    .hero {
        padding: 140px 20px 50px;
        min-height: auto;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 16px;
        margin-bottom: 36px;
    }
    
    .search-bar {
        flex-direction: column;
        padding: 12px;
        gap: 10px;
    }
    
    .search-input-wrapper {
        width: 100%;
        padding: 12px;
    }
    
    .search-btn {
        width: 100%;
        justify-content: center;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-body {
        grid-template-columns: 1fr;
    }
    
    .booking-card {
        position: static;
        margin-top: 24px;
    }
    
    .modal-amenities {
        grid-template-columns: 1fr;
    }
}
