/* Gallery Section */
.gallery-section {
    padding: 10px 0 0px;
}

.gallery-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    height: 410px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}

.gallery-main {
    height: 100%;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-main:hover img {
    transform: scale(1.02);
}

.gallery-grid-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 8px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.02);
}

.gallery-label {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(255, 255, 255, 0.95);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
}

.show-all-button {
    width: 100%;
    height: 100%;
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Show All Photos Button - Center with Blur */
.show-all-photos-center {
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.show-all-photos-center:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.show-all-photos {
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #040404;
    transition: all 0.2s ease;
    backdrop-filter: blur(100px);
    -webkit-backdrop-filter: blur(10px);
    background: rgb(255 255 255 / 85%);
}

.show-all-photos:hover {
    background: var(--primary-color);
    color: white;
}

/* Listing Details */
.listing-details {
    /*padding: 48px 0;*/
}

.listing-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 80px;
}

/* Listing Main */
.listing-main {
    max-width: 720px;
}

.listing-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 32px;
    margin-bottom: 32px;
}

.listing-title {
    font-size: 26px;
    font-weight: 600;
    color: var(--text-secondary);
    line-height: 1.3;
    margin-bottom: 12px;
}

.listing-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 14px;
    color: var(--text-secondary);
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.share-btn:hover {
    background: var(--bg-light);
}

/* Section */

.section-heading {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.subsection-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

/* Listing Specs */
.listing-specs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.spec-item svg {
    flex-shrink: 0;
    color: var(--text-secondary);
}

.spec-label {
    font-size: 16px;
    color: var(--text-primary);
    font-weight: 500;
}

/* Description */
.listing-description {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 12px;
}

.read-more-btn {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    text-decoration: underline;
}

.read-more-btn:hover {
    color: var(--primary-color);
}

/* Facilities */
.facilities-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

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

.facility-item svg {
    flex-shrink: 0;
    color: var(--text-light);
}

/* Calendar - Updated with Red Selection */
.date-calendar {
    border: 1px solid var(--border-light);
    border-radius: 16px;
    background: white;
}

.calendar-months {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 48px;
}

.calendar-month {
    min-width: 300px;
}

.calendar-month-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 16px;
    text-align: center;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.calendar-day-header {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-light);
    text-align: center;
    padding: 10px 0;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--text-primary);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    font-weight: 400;
}

.calendar-day:not(.empty):not(.disabled):not(.booked):hover {
    background: #E31C5F;
    font-weight: 600;
}

/* Red styling for selected dates */
.calendar-day.selected {
    background: #E31C5F;
    color: white;
    font-weight: 600;
}

.calendar-day.checkin {
    border-radius: 8px 0 0 8px;
}

.calendar-day.checkout {
    border-radius: 0 8px 8px 0;
}

.calendar-day.in-range {
    background: #FFE7EF;
    color: #E31C5F;
    font-weight: 500;
}

/* Booked dates styling */
.calendar-day.booked {
    color: #ddd;
    text-decoration: line-through;
    cursor: not-allowed;
    background: #f9f9f9;
}

.calendar-day.disabled {
    color: #ddd;
    cursor: not-allowed;
}

.calendar-day.empty {
    cursor: default;
}

.calendar-day.today {
    font-weight: 700;
}

.calendar-day.today::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: #E31C5F;
    border-radius: 50%;
}

/* Host Card */
.host-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    border: 1px solid var(--border-light);
    border-radius: 16px;
}

.host-avatar {
    position: relative;
    width: 64px;
    height: 64px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.host-initial {
    font-size: 24px;
    font-weight: 700;
    color: white;
}

.verified-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 20px;
    height: 20px;
    background: #10B981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: white;
    border: 2px solid white;
}

.host-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

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

.host-details {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 16px;
}

/* Things to Know */
.policy-list {
    list-style: none;
    padding: 0;
}

.policy-list li {
    padding: 8px 0;
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Map */
.map-container {
    height: 400px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-light);
}

.map-placeholder {
    width: 100%;
    height: 100%;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--text-light);
}

/* Reviews */
.no-reviews {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px;
    text-align: center;
}

.star-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.no-reviews-text {
    font-size: 18px;
    color: var(--text-secondary);
}

/* Booking Card Sidebar */
.listing-sidebar {
    position: relative;
    z-index: 1500;
}

.booking-card-sticky {
    position: sticky;
    top: 96px;
}

.booking-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    margin-top: 20px;
}

.booking-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 24px;
}

.price-amount {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
}

.price-period {
    font-size: 18px;
    color: var(--text-secondary);
}

/* Booking Inputs */
.booking-dates {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1px;
}

.date-input-group:first-child {
    border-right: 1px solid var(--border-color);
}

.guest-selector {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-top: 10px;
    margin-bottom: 10px;
}

.date-input {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.date-input:hover {
    background: var(--bg-light);
}

.date-input svg {
    flex-shrink: 0;
    color: var(--text-secondary);
}

.input-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

/* Responsive */
@media (max-width: 1200px) {
    .listing-layout {
        grid-template-columns: 1fr 360px;
        gap: 60px;
    }
}

@media (max-width: 1024px) {
    .listing-layout {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .listing-sidebar {
        order: -1;
        margin-bottom: 40px;
    }
    
    .booking-card-sticky {
        position: relative;
        top: 0;
    }
    
    .calendar-months {
        grid-template-columns: 1fr;
    }
    
    .gallery-wrapper {
        grid-template-columns: 1fr;
        height: auto;
    }
    
    .gallery-main {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .listing-title {
        font-size: 22px;
    }
    
    .listing-header {
        margin-bottom: 10px!important;
    }
    
    .gallery-section {
        padding: 10px 0 10px!important;
    }
    
    .listing-specs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-grid-side {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, 1fr);
    }
    
    .booking-dates {
        grid-template-columns: 1fr;
    }
    
    .date-input-group:first-child {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    
    .gallery-wrapper {
        height: auto;
        border-radius: 12px;
    }
    
    .gallery-main {
        height: 300px;
    }
}

/* Host Section Styles */
.listing-section {
    padding: 20px 0;
}

.host-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0;
}

.host-avatar {
    position: relative;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 600;
    color: white;
    flex-shrink: 0;
}

.host-initial {
    font-size: 20px;
    font-weight: 600;
    color: white;
}

.verified-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 20px;
    height: 20px;
    background: #10b981;
    border: 2px solid white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: white;
    font-weight: bold;
}

.host-info {
    flex: 1;
    align-items: center;
    display: flex;
    flex-direction: column;
}

.host-name {
    font-size: 18px;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 4px;
    line-height: 1.4;
}

.host-status {
    font-size: 14px;
    color: #10b981;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.host-status::before {
    content: "✓";
    font-weight: bold;
}

.host-details {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 0;
    color: #4a5568;
    font-size: 14px;
}

.host-details svg {
    color: #718096;
    flex-shrink: 0;
}

.host-stats {
    display: flex;
    gap: 24px;
    padding: 16px 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.host-stat {
    text-align: center;
    flex: 1;
}

.stat-value {
    font-size: 20px;
    font-weight: 700;
    color: #1a202c;
    line-height: 1.2;
    margin-bottom: 2px;
}

.stat-label {
    font-size: 12px;
    color: #718096;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.host-description {
    color: #4a5568;
    line-height: 1.6;
    font-size: 15px;
    margin: 16px 0;
    padding: 0;
}

/* Contact Host Button */
.btn-outline {
    background: transparent;
    border: 2px solid #e2e8f0;
    color: #4a5568;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    width: 100%;
}

.btn-outline:hover {
    border-color: #cbd5e0;
    background-color: #f7fafc;
    color: #2d3748;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-outline:active {
    transform: translateY(0);
    box-shadow: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .host-card {
        gap: 12px;
    }
    
    .host-avatar {
        width: 56px;
        height: 56px;
    }
    
    .host-initial {
        font-size: 18px;
    }
    
    .host-name {
        font-size: 16px;
    }
    
    .host-stats {
        gap: 16px;
    }
    
    .stat-value {
        font-size: 18px;
    }
    
    .host-description {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .listing-section {
        padding: 20px 0;
    }
    
    .host-card {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .host-info {
        width: 100%;
    }
    
    .host-stats {
        justify-content: space-between;
        gap: 12px;
    }
    
    .host-stat {
        flex: none;
    }
}

/* Animation for verified badge */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.verified-badge {
    animation: pulse 2s infinite;
}

/* Hover effects */
.host-avatar:hover {
    transform: scale(1.05);
    transition: transform 0.2s ease-in-out;
}

.host-stat:hover .stat-value {
    color: #667eea;
    transition: color 0.2s ease-in-out;
}
