@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&family=Playball&display=swap');

:root {
    /* Booking.com Theme - Core */
    --primary: #003580;
    --secondary: #006ce4;
    --accent: #febb02;
    --white: #ffffff;
    
    /* Branding Aliases */
    --primary-blue: #003580;
    --action-blue: #006ce4;
    --accent-yellow: #febb02;

    /* Neutrals */
    --bg-main: #f5f5f5;
    --bg-card: #FFFFFF;
    --border: #e7e7e7;
    --text-primary: #1a1a1a;
    --text-secondary: #4a4a4a;
    --bg-light: #dbeafe;
    --text-dark: #1a1a1a;

    /* Semantic */
    --success-green: #008009;
    --palm-green: #008009;

    /* Transition & Radius */
    --radius: 8px;
    --transition: all 0.2s ease-in-out;
}

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

html, body {
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: 'Outfit', sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* Legacy Navbar Styles - Disabling as we moved to Tailwind
.navbar {
    background: rgba(0, 53, 128, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--white);
    padding: 18px 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-logo {
    font-size: 24px;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
}

.nav-links {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-item {
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-item:hover {
    color: var(--accent);
}

.nav-auth {
    display: flex;
    gap: 15px;
    align-items: center;
}
*/

.btn {
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

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

.btn-light:hover {
    background-color: #f0f0f0;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Background Slideshow */
.slideshow-container {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden; /* overflow:hidden here is fine - it's not an ancestor of backdrop-filter elements */
    border-radius: inherit;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    animation: slideShow 15s linear infinite;
}

.slide-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.slide:nth-child(1) { animation-delay: 0s; }
.slide:nth-child(2) { animation-delay: 5s; }
.slide:nth-child(3) { animation-delay: 10s; }

@keyframes slideShow {
    0% { opacity: 0; transform: scale(1); }
    10% { opacity: 1; transform: scale(1.02); }
    33% { opacity: 1; transform: scale(1.05); }
    43% { opacity: 0; transform: scale(1.06); }
    100% { opacity: 0; }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    color: var(--white);
    /* NOTE: NO overflow:hidden here - it breaks backdrop-filter in Chrome */
    padding: 80px 20px 100px;
    isolation: isolate; /* Creates stacking context without breaking backdrop-filter */
    width: 100%;
    margin: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    width: 100%;
    padding: 0 20px;
}

.hero-content .subtitle {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.hero-content h1 {
    font-size: clamp(36px, 8vw, 72px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 12px;
    letter-spacing: -1px;
    text-transform: none;
    text-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.hero-content .hero-logo {
    width: clamp(100px, 16vw, 180px); /* Smaller — brand mark, not billboard */
    margin: 0 auto 16px;
    display: block;
    filter: drop-shadow(0 4px 20px rgba(0,0,0,0.3));
}

.hero-content .tagline {
    font-size: clamp(14px, 2.5vw, 18px);
    font-weight: 500;
    opacity: 0.9;
    margin-bottom: 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.decorative-line {
    width: 60px;
    height: 3px;
    background: var(--white);
    margin: 20px auto;
}

/* Search Bar Redesign V2 */
.search-container-v2 {
    position: relative;
    z-index: 20;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px;
    border-radius: 24px;
    display: flex;
    width: 95%;
    max-width: 1100px;
    margin: 0 auto;
    box-shadow: 0 30px 100px rgba(0,0,0,0.5);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-container-v2:hover {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 40px 120px rgba(0,0,0,0.6);
}

.search-field-v2 {
    flex: 1;
    background: var(--white);
    min-height: 56px;
    height: auto;
    border-radius: 16px;
    display: flex;
    align-items: center;
    padding: 10px 20px;
    gap: 12px;
    position: relative;
    border: 1px solid rgba(0,0,0,0.05);
}

.search-field-v2.wide {
    flex: 1.5;
}

.search-field-v2 i {
    color: var(--secondary);
    font-size: 18px;
    width: 20px;
    text-align: center;
}

.search-field-v2 input, 
.search-field-v2 select,
.search-field-v2 .display-text {
    border: none;
    outline: none;
    width: 100%;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    background: transparent;
    cursor: pointer;
}

.search-field-v2 .display-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vertical-divider {
    width: 1px;
    height: 30px;
    background: rgba(255, 255, 255, 0.2);
}

.search-btn-v2 {
    background: #006ce4; /* Bright blue from image 2 */
    color: var(--white);
    height: 60px;
    padding: 0 35px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 18px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.search-btn-v2:hover {
    background: #002b66;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* New Section Headings */
.visit-sl-heading {
    text-align: center;
    margin: 80px 0 40px;
}

.visit-sl-heading h2 {
    font-family: 'Playball', cursive;
    font-size: 72px;
    color: var(--primary);
    line-height: 1;
}

.visit-sl-heading p {
    font-size: 18px;
    color: var(--text-secondary);
    font-weight: 500;
}

.contact-floating {
    position: absolute;
    top: 40px;
    right: 10%;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 32px;
    font-weight: 700;
}

/* Search Bar */
.search-container {
    background: var(--accent);
    padding: 4px;
    border-radius: 12px;
    display: flex;
    width: 80%;
    max-width: 1100px;
    position: absolute;
    bottom: -35px;
    left: 10%;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.search-item {
    flex: 1;
    background: var(--white);
    margin: 2px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    border-radius: 8px;
}

.search-item:first-child {
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}

.search-item input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 14px;
}

.btn-search {
    background: var(--secondary);
    color: var(--white);
    padding: 0 30px;
    border-radius: 4px;
    margin: 2px;
}

/* Main Layout */
.main-content {
    margin-top: 80px;
    padding: 0 10%;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
}

/* Sidebar Filters */
.sidebar {
    position: sticky;
    top: 100px;
}

.filter-box {
    background: var(--white);
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 20px;
    overflow: hidden;
}

.filter-title {
    background: #f5f5f5;
    padding: 12px 15px;
    font-weight: 700;
    font-size: 14px;
    border-bottom: 1px solid #ddd;
}

.filter-group {
    padding: 15px;
}

.filter-group h4 {
    font-size: 13px;
    margin-bottom: 10px;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    margin-bottom: 8px;
    cursor: pointer;
}

/* Property List */
.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.property-card {
    background: var(--white);
    border: 1px solid #ddd;
    border-radius: 4px;
    display: flex;
    margin-bottom: 20px;
    overflow: hidden;
    transition: var(--transition);
}

.property-card:hover {
    box-shadow: var(--shadow);
}

.property-img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    padding: 15px;
}

.property-details {
    flex: 1;
    padding: 15px;
    display: flex;
    flex-direction: column;
}

.property-info-main {
    display: flex;
    justify-content: space-between;
}

.property-name {
    color: var(--secondary);
    font-size: 20px;
    font-weight: 700;
}

.property-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    background: var(--primary);
    color: var(--white);
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 14px;
}

.property-location {
    font-size: 12px;
    color: var(--secondary);
    text-decoration: underline;
    margin-bottom: 10px;
}

.badge-green {
    background: #e6f4e7;
    color: #008009;
    font-size: 12px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 2px;
    width: fit-content;
    margin-bottom: 5px;
}

.property-price-box {
    text-align: right;
    margin-top: auto;
}

.price-label {
    font-size: 12px;
    color: var(--text-muted);
}

.price-value {
    font-size: 24px;
    font-weight: 700;
}

.btn-availability {
    background: var(--secondary);
    color: var(--white);
    padding: 10px 20px;
    margin-top: 10px;
    border-radius: 4px;
}

/* Footer */
.footer-cta {
    background: var(--primary-dark);
    color: var(--white);
    padding: 40px 10%;
    margin-top: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-main {
    background: var(--white);
    padding: 50px 10%;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.footer-col h4 {
    font-size: 14px;
    margin-bottom: 15px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    font-size: 13px;
    margin-bottom: 8px;
    color: var(--secondary);
}

.footer-bottom {
    background: var(--white);
    padding: 20px 10%;
    border-top: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
}

/* Auth Pages Styling */
.auth-container {
    max-width: 400px;
    margin: 100px auto;
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.auth-container h2 {
    margin-bottom: 20px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    outline: none;
}

.form-group input:focus {
    border-color: var(--secondary);
}

.btn-auth {
    width: 100%;
    background: var(--secondary);
    color: var(--white);
    padding: 12px;
    border-radius: 4px;
    font-weight: 700;
}

/* Legacy Sub-navbar Styles - Disabling as we moved to Tailwind
.sub-navbar {
    background: var(--white);
    border-bottom: 1px solid #e2e8f0;
    padding: 0 10%;
    display: flex;
    gap: 30px;
    position: sticky;
    top: 65px;
    z-index: 999;
}

.sub-nav-item {
    padding: 15px 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.sub-nav-item i {
    font-size: 16px;
}

.sub-nav-item:hover, .sub-nav-item.active {
    color: var(--primary);
}
*/

.sub-nav-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary);
}

/* --- Redesigned Property Card --- */
.property-listing-card {
    background: var(--white);
    border: 1px solid #e7e7e7;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    margin-bottom: 16px;
    transition: var(--transition);
}

.property-listing-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.property-card-img-wrapper {
    width: 240px;
    height: 240px;
    position: relative;
    padding: 16px;
}

.property-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

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

.promoted-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary);
    color: var(--white);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.property-card-content {
    flex: 1;
    padding: 24px;
    display: flex;
    flex-direction: column;
}

.property-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.property-card-title {
    font-size: 20px;
    font-weight: 700;
    color: #006ce4;
    line-height: 1.2;
    margin-bottom: 2px;
}

.property-card-title:hover {
    text-decoration: underline;
}

.star-rating {
    color: var(--accent);
    font-size: 12px;
    display: flex;
    gap: 2px;
}

.property-card-location {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--primary);
    margin-top: 8px;
}

.location-link {
    text-decoration: underline;
    color: #006ce4;
    font-weight: 500;
}

.rating-score-box {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rating-text {
    text-align: right;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.rating-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
}

.review-count {
    font-size: 11px;
    color: #6b7280;
}

.new-badge {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-dark);
    margin-right: 4px;
}

.score-badge {
    background: #003580;
    color: var(--white);
    width: 28px;
    height: 28px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.property-card-body {
    flex: 1;
    margin-top: 15px;
}

.free-cancel-badge {
    color: #008009;
    font-size: 12px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 8px;
    border: 1px solid #0080091a;
    background: #0080090d;
}

.room-info-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.room-info-desc {
    font-size: 12px;
    color: var(--text-muted);
}

.amenity-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.amenity-tag {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f1f5f9;
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
}

.amenity-tag i {
    font-size: 10px;
    color: var(--primary);
}

.amenity-tag span {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-dark);
}

.pay-at-property {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #008009;
    font-size: 12px;
    font-weight: 700;
    margin-top: 12px;
}

.property-card-footer {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-top: 15px;
}

.price-prefix {
    font-size: 12px;
    color: var(--text-muted);
    text-align: right;
}

.price-main {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-dark);
}

.price-suffix {
    font-size: 12px;
    color: var(--text-muted);
    text-align: right;
}

.btn-see-availability {
    background: #006ce4;
    color: var(--white);
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 16px;
    margin-top: 8px;
    transition: var(--transition);
}

.btn-see-availability:hover {
    background: #0056b3;
}

/* --- Filter Groups --- */
.filter-category-title {
    font-size: 14px;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-category-title::before {
    content: '';
    width: 4px;
    height: 16px;
    background: var(--secondary);
    border-radius: 2px;
}

/* Guest Selection Dropdown Animations */
@keyframes fadeInSlideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInSlideDown 0.3s ease-out forwards;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 80px;
    }
}

@media (max-width: 768px) {
    .hero {
        height: auto;
        min-height: 100vh;
        padding-top: 100px;
        padding-bottom: 50px;
    }

    .hero-content h1 {
        font-size: 60px;
    }

    .hero-content .subtitle {
        font-size: 18px;
    }

    .hero-content .tagline {
        font-size: 16px;
        padding: 0 20px;
    }

    .search-container-v2 {
        flex-direction: column;
        width: 90%;
        gap: 8px;
        padding: 8px;
        margin-top: 30px;
    }

    .search-field-v2 {
        width: 100%;
        flex: none !important;
    }

    .search-btn-v2 {
        width: 100%;
        height: 55px;
    }

    .visit-sl-heading h2 {
        font-size: 48px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 45px;
    }

    .search-field-v2 {
        padding: 0 10px;
        gap: 8px;
    }

    .search-field-v2 input {
        font-size: 13px;
    }
}

/* Discover Sri Lanka Section */
.discover-section {
    position: relative;
    height: 500px;
    background-image: linear-gradient(rgba(0, 53, 128, 0.6), rgba(0, 53, 128, 0.6)), url('assets/slideshow/tea.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 10%;
    color: var(--white);
    margin: 80px 0;
}

.discover-section .logo-img {
    width: 180px;
    margin-bottom: 20px;
}

.discover-section h2 {
    font-size: 80px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 20px;
    letter-spacing: -2px;
}

.discover-section p {
    font-size: 28px;
    font-weight: 500;
    max-width: 800px;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .discover-section {
        height: 400px;
        padding: 0 5%;
        text-align: center;
        align-items: center;
    }

    .discover-section h2 {
        font-size: 50px;
    }

    .discover-section p {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .hero-content .hero-logo {
        width: 240px;
        margin-bottom: 5px;
    }
}
