@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@700&family=Inter:wght@400;600&display=swap');

/* Reset and base */
*, *::before, *::after {
    box-sizing: border-box;
}
body {
    margin: 0;
    background-color: #fafafa;
    color: #222;
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
    min-height: 100vh;
}
h1, h2, h3, h4 {
    margin: 0;
}

/* Scrollbar for desktop */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-thumb {
    background-color: #bfa35a;
    border-radius: 5px;
}
html {
  scroll-behavior: smooth;
}

/* Container with max-width and padding */
.container {
    max-width: 1800px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* -------------------- Header Section -------------------- */
header {
    position: relative;
    height: 900px; /* Increased height */
    width: 100%;
    overflow: hidden;
}
/* Background image with dark overlay */
.header-bg {
    position: absolute;
    inset: 0;
    background-image: url('images/header.jpg');
    background-size: cover;
    background-position: center;
    filter: brightness(0.45);
    z-index: 0;
}
/* Header content container */
.header-content {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 40px;
}

/* Logo with custom font Cormorant Garamond */
.logo img {
    height: 175px; /* або 40px, або будь-яке інше значення */
    width: auto; /* автоматична ширина, щоб не деформувалось */
}

/* Arrows container - bottom right horizontally aligned */
.arrows-container {
    position: absolute;
    bottom: 24px;
    right: 40px;
    display: flex;
    flex-direction: row;
    gap: 1px;
    z-index: 2;
}

.arrows-container .material-icons {
    font-size: 36px;
    color: #ffffff;
    cursor: pointer;
    transition: transform 0.3s ease, color 0.3s ease;
}

.arrows-container .material-icons:hover {
    transform: translateY(5px);
    color: #c8b675;
}
/* Buttons container - top right of header */
.header-buttons {
    position: absolute;
    top: 24px;
    right: 40px;
    display: flex;
    gap: 16px;
    z-index: 2; /* вище фону */
}

/* Buttons common style */
.btn {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    padding: 12px 24px; /* Увеличен отступ для лучшего клика */
    border-radius: 24px;
    border: none;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease; /* Добавлен эффект трансформации */
    min-width: 120px;
    user-select: none;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

/* Primary button style */
.btn-primary {
    background-color: #dfdcd6;
    color: #222;
}

/* Hover and focus effects for primary button */
.btn-primary:hover,
.btn-primary:focus {
    background-color: #c8b675;
    outline: none;
    color: #222;
    transform: scale(1.05); /* Эффект увеличения при наведении */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Outline button style */
.btn-outline {
    background-color: transparent;
    color: #dfdcd6;
    border: 2.5px solid #dfdcd6;
}

/* Hover and focus effects for outline button */
.btn-outline:hover,
.btn-outline:focus {
    background-color: #dfdcd6;
    color: #222;
    outline: none;
    transform: scale(1.05); /* Эффект увеличения при наведении */
}

/* Dropdown base */
.dropdown {
    position: relative;
}

/* Dropdown menu */
.dropdown-menu {
    position: absolute;
    top: 110%;
    right: 0;
    background-color: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 8px 0;
    display: none;
    min-width: 180px;
    z-index: 1000;
    overflow: hidden;
    border: 2.5px solid #dfdcd6;
}

/* Dropdown menu links */
.dropdown-menu a {
    display: block;
    padding: 12px 24px;
    text-decoration: none;
    color: #222;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: background-color 0.2s ease, color 0.2s ease;
    white-space: nowrap; /* Не переносить текст */
}

/* Hover effect for dropdown links */
.dropdown-menu a:hover {
    background-color: #dfdcd6;
    color: #222;
}

/* Show dropdown on hover */
.dropdown:hover > .dropdown-menu {
    display: block;
}

/* Submenu container */
.dropdown-submenu {
    position: relative;
}

/* Submenu itself */
.dropdown-submenu .dropdown-menu {
    top: 0;
    left: 100%;
    border-radius: 20px;
    min-width: 180px;
    border: 2.5px solid #dfdcd6;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 8px 0;
    display: none;
    position: absolute;
    background-color: #fff;
    z-index: 1100;
}

/* Show submenu on hover */
.dropdown-submenu:hover > .dropdown-menu {
    display: block;
}

/* Arrow indicator for submenu */
.dropdown-menu a.dropdown-toggle::after {
    content: "▶";
    float: right;
    margin-left: 10px;
    font-size: 0.7rem;
    color: #666;
    user-select: none;
}

/* Optional: subtle background for hovered submenu toggle */
.dropdown-menu a.dropdown-toggle:hover {
    background-color: #e6e2d8;
    color: #222;
    cursor: pointer;
}

/* -------------------- Section: Features -------------------- */
section.features {
    background: #fff;
    padding: 40px 0 48px;
}
section.features .container {
    max-width: 900px;
}
section.features h2 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    font-size: 3rem;
    text-align: center;
    margin-bottom: 32px;
    color: #222;
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeInUp 0.5s forwards;
}

/* Grid of features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 24px 36px;
}

.feature-item {
    background-color: #f6f3ef;
    border-radius: 20px; /* більш округлі */
    padding: 32px 24px; /* більше повітря всередині */
    text-align: center;
    color: #9d8569;
    user-select: none;
    min-height: 180px; /* вище */
    min-width: 220px;  /* ширше */
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-size: 1.15rem; /* трохи більший шрифт */
    font-weight: 500;
    transition: transform 0.2s ease;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.5s forwards;
}

.feature-item:hover {
    transform: translateY(-4px); /* трохи піднімається при наведенні */
}

/* Number label on top */
.feature-item .number {
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: #bfa35a;
    margin-bottom: 6px;
}

/* Feature icon */
.feature-icon {
    font-size: 48px;
    margin-bottom: 8px;
    color: #bfa35a;
}

.material-symbols-outlined.feature-icon {
  font-variation-settings: 
    'FILL' 0, 
    'wght' 400, 
    'GRAD' 0, 
    'opsz' 24;
  font-size: 48px; /* або 80px якщо треба */
}

/* Feature text */
.feature-text {
    font-weight: 600;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
}

/* -------------------- Section: Gallery Sections -------------------- */
section.gallery-section {
    margin: 48px auto;
    max-width: 1100px;
    padding-left: 20px;
    padding-right: 20px;
}

.image-wrapper {
    margin-bottom: -64px;
}

.gallery-image {
    width: 100%;
    height: auto;
    display: block;
}

section.gallery-section > h2 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 32px;
    color: #222;
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeInUp 0.5s forwards;
}

/* Gallery image style */
.gallery-large-image {
    width: 100%;
    max-height: 380px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}

/* Grid for smaller images (bedrooms, bath, etc) */
.gallery-grid {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
    gap: 14px;
}

.gallery-grid img {
    width: 100%;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.gallery-item {
    position: relative;
    height: 280px;
    border-radius: 20px;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 20px;
}

.gallery-item .caption {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 1rem;
    line-height: 1.2;
}

/* Caption below images for last section */
.caption {
    position: absolute;
    left: 12px;
    bottom: 12px;
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 1rem;
    line-height: 1.2;
    pointer-events: none;
    font-family: 'Cormorant Garamond';
}

/* -------------------- Trees Decorative Line -------------------- */
.trees-decor {
    width: 100%;
    height: 120px;
    margin: 32px 0 40px;
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: 100% auto; /* ключевой момент */
    user-select: none;
}
.trees-decor-1 {
    background-image: url('images/trees.png');
}
.trees-decor-2 {
    background-image: url('images/trees.png');
}

/* -------------------- Rules Section -------------------- */
section.rules {
    max-width: 900px;
    background-color: #dad2c9;
    margin: 40px auto;
    border-radius: 20px;
    padding: 32px 36px;
    line-height: 1.4;
    font-family: 'Cormorant Garamond';
    font-weight: 500;
    font-size: 1.1rem;
    color: #222;
}
section.rules h2 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 32px;
    color: #222;
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeInUp 0.5s forwards;
}
section.rules ol {
    padding-left: 2em;
}
section.rules ol li {
    margin-bottom: 1.2rem;
}

/* Rule emphasis box for price */
.price-box {
    max-width: 650px;
    background-color: #a78131;
    margin: 48px auto 32px;
    padding: 22px 28px;
    border-radius: 28px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: white;
    text-align: center;
    user-select: none;
    line-height: 1.3;
}

/* Reserve button below price box */
.btn-reserve {
    display: block;
    margin: 0 auto 48px auto;
    max-width: 220px;
}

/* -------------------- Footer Viking Icon -------------------- */
footer {
    text-align: center;
    padding-bottom: 32px;
}
.viking-icon {
    width: 72px;
    height: 64px;
    margin: 0 auto;
    color: #bfa35a;
    user-select: none;
}

/* -------------------- Slider -------------------- */
.slide {
  flex: 0 0 auto;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 4 / 3; /* Відповідає 5712x4284 */
  overflow: hidden;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slider-container {
    position: relative;
    overflow: hidden;
    max-width: 100%;
    margin: 0 auto;
    border-radius: 12px;
}

.slider-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slider-track img {
    min-width: 100%;
    height: auto;
    display: block;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.7);
    border: none;
    font-size: 2rem;
    padding: 0.2em 0.6em;
    cursor: pointer;
    z-index: 1;
}

.slider-btn.prev {
    left: 10px;
}

.slider-btn.next {
    right: 10px;
}

/* Keyframes for animations */
@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
