:root {
    --primary-gold: #c5a059;
    --dark-green: #2c3e50;
    --cream-bg: #f9f9f7;
    --text-grey: #555;
    --navbar-height: 80px;
}

html {
    scroll-padding-top: var(--navbar-height);
}

body {
    font-family: 'Lato', sans-serif;
    color: var(--text-grey);
    background-color: var(--cream-bg);
}

h1,
h2,
h3,
h4,
.navbar-brand {
    font-family: 'Playfair Display', serif;
    color: var(--dark-green);
}

/* Navbar */
.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: 700;
}

.nav-link {
    color: var(--dark-green);
    font-weight: 400;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    margin: 0 10px;
}

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

.btn-gold {
    background-color: var(--primary-gold);
    color: white;
    border-radius: 0;
    padding: 10px 25px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.8rem;
    border: 1px solid var(--primary-gold);
    transition: all 0.3s;
}

.btn-gold:hover {
    background-color: transparent;
    color: var(--primary-gold);
}

/* Hero Section */
.hero-section {
    height: 85vh;
    /* Fallback for older browsers */
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('../img/penthouse/008.webp');
    /* Modern browsers with image-set */
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), 
        image-set(
            url('../img/penthouse/responsive/008-1920w.avif') type('image/avif'),
            url('../img/penthouse/responsive/008-1920w.webp') type('image/webp'),
            url('../img/penthouse/008.webp') type('image/webp')
        );
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

/* Responsive hero background images for different screen sizes */
@media (max-width: 1920px) {
    .hero-section {
        background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('../img/penthouse/008.webp');
        background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), 
            image-set(
                url('../img/penthouse/responsive/008-1920w.avif') type('image/avif'),
                url('../img/penthouse/responsive/008-1920w.webp') type('image/webp')
            );
        background-size: cover;
        background-position: center;
    }
}

@media (max-width: 1280px) {
    .hero-section {
        background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('../img/penthouse/responsive/008-1280w.webp');
        background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), 
            image-set(
                url('../img/penthouse/responsive/008-1280w.avif') type('image/avif'),
                url('../img/penthouse/responsive/008-1280w.webp') type('image/webp')
            );
        background-size: cover;
        background-position: center;
    }
}

@media (max-width: 1024px) {
    .hero-section {
        background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('../img/penthouse/responsive/008-1024w.webp');
        background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), 
            image-set(
                url('../img/penthouse/responsive/008-1024w.avif') type('image/avif'),
                url('../img/penthouse/responsive/008-1024w.webp') type('image/webp')
            );
        background-size: cover;
        background-position: center;
    }
}

@media (max-width: 768px) {
    .hero-section {
        background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('../img/penthouse/responsive/008-768w.webp');
        background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), 
            image-set(
                url('../img/penthouse/responsive/008-768w.avif') type('image/avif'),
                url('../img/penthouse/responsive/008-768w.webp') type('image/webp')
            );
        background-size: cover;
        background-position: center;
    }
}

@media (max-width: 640px) {
    .hero-section {
        background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('../img/penthouse/responsive/008-640w.webp');
        background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), 
            image-set(
                url('../img/penthouse/responsive/008-640w.avif') type('image/avif'),
                url('../img/penthouse/responsive/008-640w.webp') type('image/webp')
            );
        background-size: cover;
        background-position: center;
    }
}

.hero-title {
    font-size: 4rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 300;
}

/* Intro Section */
.intro-section {
    padding: 5rem 0;
    text-align: center;
}

.section-separator {
    width: 60px;
    height: 2px;
    background-color: var(--primary-gold);
    margin: 20px auto;
}

/* Apartment Cards */
.apt-card {
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s;
    margin-bottom: 30px;
    background: white;
}

.apt-card:hover {
    transform: translateY(-5px);
}

.apt-img-wrapper {
    height: 300px;
    overflow: hidden;
    position: relative;
}

.apt-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.apt-card:hover .apt-img-wrapper img {
    transform: scale(1.05);
}

.apt-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: white;
    padding: 5px 15px;
    font-family: 'Playfair Display', serif;
    font-size: 0.9rem;
    color: var(--dark-green);
}

.card-body {
    padding: 2rem;
    text-align: center;
}

/* Amenities Icons */
.amenity-icon {
    font-size: 1.2rem;
    margin: 0 10px;
    color: var(--primary-gold);
}

/* Host Section */
.host-section {
    background-color: white;
    padding: 5rem 0;
}

.host-img {
    border-radius: 50%;
    width: 200px;
    height: 200px;
    object-fit: cover;
    margin-bottom: 20px;
    border: 3px solid var(--primary-gold);
}

/* Footer */
footer {
    background-color: var(--dark-green);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

footer p {
    opacity: 0.8;
    font-size: 0.9rem;
}

/* Modal Gallery - Gallery Modal Styling */
.modal-content {
    background-color: var(--cream-bg);
    border-radius: 0;
    /* Keeps the sharp, classic look */
}

.modal-header {
    background-color: white;
    padding: 1rem 2rem;
}

.carousel-item {
    height: 70vh;
    /* Takes up 70% of the screen height */
    background-color: #000;
    /* Black background for cinematic feel */
}

.carousel-item img {
    height: 100%;
    width: 100%;
    object-fit: contain;
    /* Ensures the whole photo is seen without cropping */
}

/* Make controls bigger and visible on dark background */
.carousel-control-prev,
.carousel-control-next {
    width: 8%;
    opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 4rem;
    height: 4rem;
    filter: brightness(0) invert(1);
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 0.7;
}

/* End of Modal Gallery Styling */

/* Location & Map Styling */
.location-section {
    background-color: white;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.map-container {
    width: 100%;
    height: 600px;
    /* Tall height for luxury feel */
    background-color: #e5e3df;
    /* Placeholder color while loading */
    border-radius: 8px;
    overflow: hidden;
}

/* Custom Leaflet Marker - 1865 Florence Branding */
.custom-map-marker {
    background: transparent;
    border: none;
}

.marker-pin {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #c5a059 0%, #d4b06a 100%);
    border: 3px solid #2c3e50;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.marker-inner {
    transform: rotate(45deg);
    color: #2c3e50;
    font-weight: 700;
    font-size: 11px;
    font-family: 'Cormorant Garamond', serif;
    letter-spacing: 0.5px;
}

/* Leaflet Popup Styling */
.map-popup {
    text-align: center;
    padding: 5px;
    font-family: 'Inter', sans-serif;
}

.map-popup strong {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    color: #2c3e50;
}

.map-popup a {
    display: inline-block;
    margin-top: 8px;
    color: #c5a059;
    text-decoration: none;
    font-weight: 500;
}

.map-popup a:hover {
    color: #2c3e50;
}

/* Override Leaflet default popup styles */
.leaflet-popup-content-wrapper {
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.leaflet-popup-tip {
    background: white;
}

/* Responsive adjustment for mobile */
@media (max-width: 991px) {
    .map-container {
        height: 400px;
    }
}
/* End of Location & Map Styling */
