@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;
}

html {
  scroll-behavior: smooth;
}

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 mobile */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-thumb {
    background-color: #bfa35a;
    border-radius: 5px;
}

/* Container with max-width and padding */
.container {
    max-width: 100%;
    margin: 0 auto;
    padding-left: 10px;
    padding-right: 10px;
}

/* -------------------- Header Section -------------------- */
header {
    position: relative;
    height: 600px; /* Decreased height for mobile */
    width: 100%;
    overflow: hidden;
}
.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 {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column; /* Stack elements vertically */
    align-items: center;
    padding: 16px; /* Reduced padding */
}

/* Logo */
.logo img {
    height: 100px; /* Adjusted height for mobile */
    width: auto;
}

/* Arrows container */
.arrows-container {
    position: absolute;
    bottom: 16px;
    right: 16px;
    display: flex;
    flex-direction: row;
    gap: 5px;
    z-index: 2;
}

.arrows-container .material-icons {
    font-size: 24px; /* Adjusted size for mobile */
    color: #ffffff;
    cursor: pointer;
    transition: transform 0.3s ease, color 0.3s ease;
    display: none;
}

.arrows-container .material-icons:hover {
    transform: translateY(5px);
    color: #c8b675;
}

.header-buttons {
    position: absolute;
    bottom:-30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: row; /* или column — как тебе нужно */
    gap: 10px;
    z-index: 2;
    display: flex;
}

/* Buttons common style */
.btn {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.9rem; /* Adjusted font size */
    cursor: pointer;
    padding: 10px 20px; /* Adjusted padding */
    border-radius: 20px;
    border: none;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    min-width: 100px; /* Adjusted min-width */
    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: 2px solid #dfdcd6; /* Adjusted border */
}

/* 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: 150px; /* Adjusted min-width */
    z-index: 1000;
    overflow: hidden;
    border: 2px solid #dfdcd6;
}

/* Dropdown menu links */
.dropdown-menu a {
    display: block;
    padding: 10px 20px; /* Adjusted padding */
    text-decoration: none;
    color: #222;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem; /* Adjusted font size */
    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;
}

/* -------------------- Section: Features -------------------- */
section.features {
    background: #fff;
    padding: 20px 0; /* Adjusted padding */
}
section.features .container {
    max-width: 100%;
}
section.features h2 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    font-size: 2rem; /* Adjusted font size */
    text-align: center;
    margin-bottom: 20px; /* Adjusted margin */
    color: #222;
}

/* Grid of features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); /* Adjusted grid */
    gap: 16px; /* Adjusted gap */
}

.feature-item {
    background-color: #f6f3ef;
    border-radius: 20px;
    padding: 20px; /* Adjusted padding */
    text-align: center;
    color: #9d8569;
    user-select: none;
    min-height: 150px; /* Adjusted height */
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-size: 1rem; /* Adjusted font size */
    font-weight: 500;
    
}

.feature-item:hover {
    transform: translateY(-4px);
}

/* Feature icon */
.feature-icon {
    font-size: 36px; /* Adjusted size */
    margin-bottom: 8px;
    color: #bfa35a;
}

/* Feature text */
.feature-text {
    font-weight: 600;
    font-size: 0.8rem; /* Adjusted font size */
    font-family: 'Inter', sans-serif;
}

/* -------------------- Section: Gallery Sections -------------------- */
section.gallery-section {
    margin: 20px auto; /* Adjusted margin */
    max-width: 100%;
    padding-left: 10px;
    padding-right: 10px;
}

.gallery-image {
    width: 100%;
    height: auto;
    display: block;
}

section.gallery-section > h2 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    font-size: 2rem; /* Adjusted font size */
    text-align: center;
    margin-bottom: 20px; /* Adjusted margin */
    color: #222;
}


.gallery-grid img.last-gallery-image {
    grid-column: 1 / -1; /* занимает всю строку */
    justify-self: center; /* центрирует внутри строки */
    max-width: 100%; /* по желанию */
    height: 250px;
}


/* Gallery image style */
.gallery-large-image {
    width: 100%;
    max-height: 300px; /* Adjusted max-height */
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}

/* Grid for smaller images */
.gallery-grid {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* Adjusted grid */
    gap: 10px; /* Adjusted gap */
}

.gallery-grid img {
    width: 100%;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.gallery-item .caption {
    font-size: 0.9rem; /* Уменьшение размера шрифта для мобильных устройств */
    padding: 4px 8px; /* Уменьшение отступов для мобильных устройств */
}

/* Gallery item styles */
.gallery-item {
    position: relative;
    overflow: hidden; /* Обеспечивает обрезку содержимого, выходящего за пределы элемента */
}
/* Caption styles */
.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: 14px;
    line-height: 1.2;
    transition: opacity 0.3s ease; /* Плавный переход для появления/исчезновения */
    font-family: 'Cormorant Garamond';
}

/* -------------------- Rules Section -------------------- */
section.rules {
    max-width: 100%;
    background-color: #dad2c9;
    margin: 20px auto; /* Adjusted margin */
    border-radius: 20px;
    padding: 20px; /* Adjusted padding */
    line-height: 1.4;
    font-family: 'Cormorant Garamond';
    font-weight: 500;
    font-size: 1rem; /* Adjusted font size */
    color: #222;
}
section.rules h2 {
    font-size: 1.4rem; /* Зменшено розмір шрифту для мобільних */
    margin-bottom: 16px; /* Менше відступу знизу */
    text-align: center;
    padding: 0 10px; /* Додано відступи з боків, щоб уникнути прилипання тексту */
}
section.rules ol {
    padding-left: 1.5em; /* Adjusted padding */
}
section.rules ol li {
    margin-bottom: 1rem; /* Adjusted margin */
}

/* Rule emphasis box for price */
.price-box {
    max-width: 100%;
    background-color: #a78131;
    margin: 20px auto; /* Adjusted margin */
    padding: 20px; /* Adjusted padding */
    border-radius: 20px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem; /* Adjusted font size */
    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 20px auto; /* Adjusted margin */
    max-width: 180px; /* Adjusted max-width */
}

/* -------------------- Footer Viking Icon -------------------- */
footer {
    text-align: center;
    padding-bottom: 20px; /* Adjusted padding */
}
.viking-icon {
    width: 60px; /* Adjusted size */
    height: 54px; /* Adjusted size */
    margin: 0 auto;
    color: #bfa35a;
    user-select: none;
}

/* -------------------- Slider -------------------- */
.slide {
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 4 / 3;
    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: 1.5rem; /* Adjusted size */
    padding: 0.2em 0.4em; /* Adjusted padding */
    cursor: pointer;
    z-index: 1;
}

.slider-btn.prev {
    left: 10px;
}

.slider-btn.next {
    right: 10px;
}

.image-wrapper{
    display: none;
}