/* =========================================
   VARIABLES & RESET
   ========================================= */
:root {
    --primary-color: #2b2b2b;
    --text-color: #555555;
    --light-text: #888888;
    --bg-color: #ffffff;
    --accent-color: #4b5d4e;
    --border-color: #eaeaea;
    --white: #ffffff;

    --font-primary: 'Montserrat', sans-serif;
    --font-heading: 'Playfair Display', serif;

    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
}

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

ul {
    list-style: none;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================
   TYPOGRAPHY & UTILITIES
   ========================================= */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--primary-color);
    font-weight: 700;
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 4rem;
    color: #ffffff;
    font-weight: 700;
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-bottom: 8rem;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    z-index: -2;
}

.hero-layer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0) 20%, rgba(255, 255, 255, 0) 80%, rgba(255, 255, 255, 1) 100%);
    z-index: -1;
    pointer-events: none;
}

/* HEADER */
.header {
    width: 100%;
    padding: 2rem 0;
    z-index: 10;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    flex-direction: column;
}

.logo h1 {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--primary-color);
    margin: 0;
}

.logo .subtitle {
    font-size: 0.6rem;
    color: var(--light-text);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav {
    display: flex;
}

.nav-list {
    display: flex;
    gap: 2.5rem;
}

.nav-list a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--primary-color);
    position: relative;
}

.nav-list a:hover,
.nav-list a.active {
    color: var(--accent-color);
}

.nav-list a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background-color: var(--accent-color);
    border-radius: 50%;
}

.social-icons {
    display: flex;
    gap: 1.5rem;
}

.social-icons a {
    color: var(--primary-color);
    font-size: 1rem;
}

.social-icons a:hover {
    color: var(--accent-color);
    transform: translateY(-2px);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
}

/* HERO CONTENT */
.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding-top: 4rem;
}

.sub-heading {
    font-size: 1.8rem;
    font-weight: 400;
    color: rgb(255, 255, 255);
    margin-bottom: -1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.main-heading {
    font-size: 12rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.1em;
    line-height: 1;
    text-shadow: 0 10px 30px rgba(255, 255, 255, 0.274);
}

/* SLIDER CONTROLS */
.slider-controls {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4rem;
    padding: 0 2rem;
}

.play-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--white);
    cursor: pointer;
}

.play-btn i {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1rem;
    transition: var(--transition);
}

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

.play-btn span {
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.3;
    text-align: left;
}

.play-btn small {
    font-size: 0.8rem;
    opacity: 0.8;
}

.slider-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background-color: rgba(255, 255, 255, 0.8);
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
}

.nav-arrow:hover {
    background-color: var(--white);
    transform: scale(1.1);
}

.slider-numbers {
    display: flex;
    align-items: baseline;
    color: var(--white);
    font-weight: 300;
}

.slider-numbers .current {
    font-size: 3rem;
}

.slider-numbers .total {
    font-size: 1.2rem;
    opacity: 0.8;
}

/* SEARCH BAR */
.search-bar-wrapper {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    z-index: 10;
}

.search-bar {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    padding: 1rem;
    justify-content: space-between;
}

.search-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0 1.5rem;
    flex: 1;
}

.search-item .icon {
    font-size: 1.2rem;
    color: #cccccc;
}

.input-group {
    display: flex;
    flex-direction: column;
}

.input-group label {
    font-size: 0.75rem;
    color: var(--light-text);
    margin-bottom: 0.2rem;
}

.input-group select {
    border: none;
    outline: none;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-color);
    background: transparent;
    cursor: pointer;
    font-family: var(--font-primary);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24"><path fill="%232b2b2b" d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right center;
    padding-right: 1.5rem;
}

/* CUSTOM SELECT DROPDOWN */
.custom-select-wrapper {
    position: relative;
    user-select: none;
    width: 100%;
}

.custom-select {
    position: relative;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-color);
}

.custom-select-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 0.2rem 0;
    white-space: nowrap;
}

.custom-select-trigger span {
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 1rem;
}

.custom-select-trigger i {
    font-size: 0.7rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.custom-select.open .custom-select-trigger i {
    transform: rotate(180deg);
}

.custom-options {
    position: absolute;
    top: calc(100% + 15px);
    left: -15px; /* Aligned better with the layout */
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 100;
    overflow: hidden;
    min-width: 240px;
    border: 1px solid var(--border-color);
}

.custom-select.open .custom-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.custom-option {
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-color);
    border-bottom: 1px solid #f0f0f0;
}

.custom-option:last-child {
    border-bottom: none;
}

.custom-option:hover {
    background-color: #f9f9f9;
    color: var(--primary-color);
    padding-left: 1.8rem; /* nice hover effect */
}

.custom-option.selected {
    background-color: #f4eee6;
    color: var(--primary-color);
    font-weight: 600;
    border-left: 3px solid var(--accent-color);
}

.divider {
    width: 1px;
    height: 40px;
    background-color: var(--border-color);
}

.search-btn {
    background-color: #4b4b4b;
    color: var(--white);
    border: none;
    padding: 1.2rem 2.5rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    margin-left: 1rem;
}

.search-btn:hover {
    background-color: #2b2b2b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* =========================================
   POPULAR PLACES
   ========================================= */
.popular-places {
    padding: 8rem 0 4rem;
    background-color: #c1a482;
    background-image: url('../assets/ttt\ \(2\).png');
    /* UPDATED LINE */
    background-size: cover;
    background-position: top center;
}

.places-list {
    display: flex;
    flex-direction: column;
    gap: 8rem;
}

.place-card {
    display: flex;
    align-items: center;
    gap: 6rem;
}

.place-card.reverse {
    flex-direction: row-reverse;
}

.place-image {
    flex: 1;
    position: relative;
}

.place-image img {
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
}

.large-number {
    position: absolute;
    bottom: -30px;
    left: -20px;
    font-size: 8rem;
    font-weight: 300;
    color: #ffffff;
    line-height: 1;
    z-index: 2;
}

.place-card.reverse .large-number {
    left: auto;
    right: -20px;
}

.place-info {
    flex: 1;
    /* Frosted/solid overlay to make text readable over the background */
    background-color: rgba(255, 255, 255, 0.85);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.place-info h3 {
    font-size: 1.8rem;
    margin-bottom: 0.2rem;
    color: var(--primary-color);
}

.place-info .location {
    font-size: 0.9rem;
    color: var(--light-text);
    display: block;
    margin-bottom: 1.5rem;
}

.place-info p {
    color: var(--text-color);
    margin-bottom: 2rem;
    font-size: 0.95rem;
    line-height: 1.8;
}

.read-more {
    display: inline-block;
    padding: 0.8rem 2rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--primary-color);
    transition: var(--transition);
}

.read-more:hover {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* =========================================
   FOOTER
   ========================================= */
.site-footer {
    padding: 4rem 0 2rem;
    background-color: #f4eee6;
    /* Warm earthy off-white */
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-social {
    display: flex;
    gap: 1.5rem;
}

.footer-social a {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.footer-social a:hover {
    color: var(--accent-color);
    transform: translateY(-2px);
}

.copyright {
    text-align: center;
    color: var(--light-text);
    font-size: 0.85rem;
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1024px) {
    .main-heading {
        font-size: 8rem;
    }

    .place-card {
        gap: 3rem;
    }
}

@media (max-width: 900px) {
    .search-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        padding: 1.5rem;
    }

    .search-item {
        padding: 0.5rem 0;
    }

    .divider {
        width: 100%;
        height: 1px;
    }

    .search-bar-wrapper {
        position: relative;
        bottom: 0;
        transform: none;
        left: 0;
        margin-top: 2rem;
    }

    .search-btn {
        margin-left: 0;
        margin-top: 1rem;
    }
}

@media (max-width: 768px) {

    .nav,
    .social-icons {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .main-heading {
        font-size: 5rem;
    }

    .sub-heading {
        font-size: 1.4rem;
    }

    .slider-controls {
        flex-direction: column;
        gap: 2rem;
    }

    .hero {
        padding-bottom: 4rem;
    }

    .place-card,
    .place-card.reverse {
        flex-direction: column;
        gap: 2rem;
    }

    .large-number {
        font-size: 5rem;
        bottom: -15px;
    }

    .places-list {
        gap: 5rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .main-heading {
        font-size: 3.5rem;
    }

    .slider-numbers .current {
        font-size: 2rem;
    }
}