@import url('https://fonts.googleapis.com/css2?family=Ubuntu&display=swap');
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap");

/* Base styles and variables */
:root {
    --primary-color: #fefdf8;
    --secondary-color: #232222;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --transition: all 0.3s ease-in-out;
    --heading-font: 'Poppins', sans-serif;
    --body-font: 'Ubuntu', sans-serif;
    --h1-size: 2.5rem;
    --h2-size: 2rem;
    --h3-size: 1.5rem;
    --body-size: 1rem;
    --small-size: 0.875rem;
}

/* Global styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* Global Typography */
body {
    font-family: var(--body-font);
    font-size: var(--body-size);
    line-height: 1.6;
    color: var(--text-color);
}

/* Headings */
h1,
h2,
h3,
h4,
.display-4 {
    font-family: var(--heading-font);
    font-weight: 600;
    line-height: 1.2;
    color: var(--black);
    margin-bottom: 1rem;
}

.display-4 {
    font-size: var(--h1-size);
    margin-bottom: 1.5rem;
}

h2,
.section-title h2 {
    font-size: var(--h2-size);
}

h3,
.info-card h3 {
    font-size: var(--h3-size);
}

/* Body Text */
p,
.lead,
input,
textarea,
label,
.nav-link {
    font-family: var(--body-font);
    font-size: var(--body-size);
    line-height: 1.6;
}

.lead {
    font-size: calc(var(--body-size) * 1.15);
    font-weight: 400;
}

/* Special Text Elements */
.gallery-title p, 
.review-card .date,
.airbnb-info {
    font-size: var(--small-size);
    color: #666;
}

/* Links */
a {
    color: var(--secondary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
    opacity: 0.8;
    text-decoration: none;
}

.footer a {
    color: var(--black);
    text-decoration: none;
}

/* Form Elements */
input, textarea {
    font-family: var(--body-font);
    font-size: var(--body-size);
}

label {
    font-weight: 500;
    color: var(--secondary-color);
}

/* Media Queries */
@media (max-width: 768px) {
    :root {
        --h1-size: 2rem;
        --h2-size: 1.75rem;
        --h3-size: 1.25rem;
        --body-size: 0.9375rem;
    }
    
    .display-4 {
        font-size: var(--h1-size);
    }
    
    .lead {
        font-size: var(--body-size);
    }
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255);
    padding: 1rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.navbar-brand img {
    height: 100px;
}

.nav-link {
    position: relative;
    margin: 0 0.5rem;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero Carousel Styles */
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.hero-carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-controls {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 2;
}

.hero-prev, .hero-next {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    padding: 1rem;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.hero-dots {
    display: flex;
    gap: 0.5rem;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-dot.active {
    background: white;
}

.content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    animation: fadeIn 1s ease-out;
}

/* About Section */
.about-section {
    padding: 4rem 1rem;
}

.about-title {
    text-align: center;
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(20px);
    animation: slideUp 0.8s ease-out forwards;
}

.about-container {
    display: grid;
    gap: 2rem;
    padding: 0 1rem;
}

/* Gallery Section */
.gallery-outter-container {
    padding: 4rem 1rem;
    background: var(--light-bg);
}

.gallery {
    display: grid;
    gap: 1rem;
}

.gallery img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    transition: var(--transition);
}

.gallery img:hover {
    transform: scale(1.02);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Media Queries */
@media (min-width: 768px) {
    .about-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .about-container {
        grid-template-columns: repeat(3, 1fr);
    }

    .gallery {
        grid-template-columns: repeat(3, 1fr);
    }
}

#cookiePopup {
    font-family: "Ubuntu";
    background-color: var(--primary-color);
    position: fixed;
    padding-left: 20rem;
    padding-right: 20rem;
    margin: auto;
    font-size: 14px;
    z-index: 2;
    text-align: justify;
    align-content: center;
    padding: 2em 1.4em;
    border-radius: 6px;
    transition-delay: 0.2s;
}

#cookiePopup img {
    display: block;
    width: 3.75em;
    transform: translateZ(0);
    position: relative;
    margin: auto;
}

#cookiePopup p {
    text-align: center;
    margin: 1.4em 0;
}

#cookiePopup button {
    border: none;
    color: #ffffff;
    font-size: 1.2em;
    padding: 1rem 1rem;
    display: block;
    width: 20%;
    transform: translateZ(0);
    position: relative;
    margin: auto;
    border-radius: 5px;
}

#cookiePopup a {
    color: #6859fe;
}

.hide {
    visibility: hidden;
    margin: auto;
    bottom: 0;
    left: 20rem;
    right: 20rem;
}

.show {
    visibility: visible;
    left: 20rem;
    right: 20rem;
    bottom: 2em;
}

@media (max-width: 996px) {
    .hide {
        bottom: 2em;
        right: 0;
    }

    .show {
        left: 10rem;
        right: 10rem;
        bottom: 2rem;
    }
}

@media (max-width: 567px) {
    .hide {
        bottom: 2em;
        right: 0;
    }

    .show {
        left: 2rem;
        right: 2rem;
        bottom: 2rem;
    }

    #cookiePopup button {
        width: 40%
    }
}

/* Gallery Section Styles */
.gallery-section {
    padding: 5rem 1rem;
    background: var(--light-bg);
}

.gallery-section .container {
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-title {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.gallery-title h1 {
    color: var(--secondary-color);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.gallery-title p {
    color: var(--text-color);
    font-size: 1.1rem;
    margin: 0.5rem 0;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.gallery a {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.gallery img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    transition: all 0.5s ease;
}

.gallery a:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.gallery a:hover img {
    transform: scale(1.05);
}

/* Gallery Container Styles */
.gallery-container-2,
.gallery-container-3 {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Media Queries */
@media (min-width: 768px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-title {
        grid-column: span 2;
    }
}

@media (min-width: 1024px) {
    .gallery {
        grid-template-columns: repeat(3, 1fr);
    }

    .gallery-title {
        grid-column: span 3;
    }
}

/* Lightbox Customization */
.lb-data .lb-caption {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    color: var(--primary-color);
}

.lb-nav a.lb-prev,
.lb-nav a.lb-next {
    opacity: 0.8;
    transition: all 0.3s ease;
}

.lb-nav a.lb-prev:hover,
.lb-nav a.lb-next:hover {
    opacity: 1;
}

/* Animation for gallery items */
.gallery a {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.gallery a:nth-child(2) {
    animation-delay: 0.2s;
}

.gallery a:nth-child(3) {
    animation-delay: 0.3s;
}

.gallery a:nth-child(4) {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Reviews Section Styles */
.reviews-section {
    padding: 5rem 1rem;
    background: var(--light-bg);
    overflow: hidden;
}

.reviews-carousel {
    position: relative;
    max-width: 1200px;
    margin: 3rem auto;
    padding: 1rem;
}

.reviews-track {
    display: flex;
    transition: transform 0.5s ease;
    gap: 2rem;
}

.review-card {
    flex: 0 0 100%;
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
}

.stars {
    color: #ffd700;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.review-text {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.reviewer {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.reviewer-info h4 {
    margin: 0;
    color: var(--primary-color);
}

.date,
.airbnb-info {
    font-size: 0.9rem;
    color: #666;
    margin: 0.2rem 0;
}

.carousel-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.prev-btn,
.next-btn {
    background: rgba(255,255,255,0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.prev-btn:hover,
.next-btn:hover {
    background: rgba(255,255,255,0.5);
    transform: scale(1.1);
}

.carousel-dots {
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

/* Media Queries */
@media (min-width: 768px) {
    .review-card {
        flex: 0 0 calc(50% - 1rem);
    }
}

@media (min-width: 1024px) {
    .review-card {
        flex: 0 0 calc(33.333% - 1.333rem);
    }
}

/* Booking Platform Styles */
.booking-buttons {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1.5rem;
    align-items: center;
}

.booking-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 200px;
    padding: 1rem;
    background: white;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.booking-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.booking-logo {
    height: 35px;
    width: auto;
    object-fit: contain;
    transition: all 0.3s ease;
}

.booking-btn.airbnb {
    background: white;
    padding: 0.8rem 2rem;
}

.booking-btn.booking-com {
    background: white;
    padding: 0.8rem 2rem;
}

/* Media Queries for Booking Buttons */
@media (min-width: 768px) {
    .booking-buttons {
        flex-direction: row;
        justify-content: center;
        gap: 2rem;
    }

    .booking-btn {
        width: 220px;
    }

    .booking-logo {
        height: 40px;
    }
}

@media (min-width: 1024px) {
    .booking-btn {
        width: 240px;
    }

    .booking-logo {
        height: 45px;
    }
}

/* Update existing location section styles */
.location-section .info-card.booking {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    background: var(--light-bg);
}

.location-section .info-card.booking h3 {
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
    font-size: 1.5rem;
}

/* Common card/container styles */
.info-card,
.review-card,
.gallery-title,
.about-content,
.contact-container .inner-container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    padding: 2rem;
}

/* Hover effects for interactive elements */
.info-card:hover,
.review-card:hover,
.gallery img:hover,
.booking-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Update gallery styles */
.gallery img {
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* Footer Contact Form Styles */
.footer .contact-container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.footer .inner-container {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    max-width: 100%;
}

.footer .inner-container h1 {
    color: var(--secondary-color);
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

/* Form Input Styles */
.footer input[type=text],
.footer input[type=email],
.footer input[type=date],
.footer textarea {
    width: 100%;
    padding: 12px 15px;
    margin: 8px 0;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--light-bg);
}

.footer input:focus,
.footer textarea:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    outline: none;
}

/* Label Styles */
.footer label {
    display: block;
    text-align: left;
    color: var(--text-color);
    font-size: 1rem;
    margin-top: 1rem;
    padding: 0;
}

/* Submit Button */
.footer input[type=submit] {
    background: var(--secondary-color);
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    width: auto;
}

.footer input[type=submit]:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .footer .contact-container {
        padding: 1.5rem;
        margin-top: 2rem;
    }

    .footer .inner-container {
        padding: 1rem;
    }

    .footer input[type=submit] {
        width: 100%;
    }
}