html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 16px;
    line-height: 1.6;
    letter-spacing: 0.01em;
    color: #1a1a1a;
    background-color: #ffffff;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: inherit;
    font-weight: 700;
    line-height: 1.25;
    color: #111111;
    margin-top: 0;
}

button,
input,
select,
textarea {
    font-family: inherit;
    font-size: inherit;
}

section {
    scroll-margin-top: 80px;
}

.site-header {
    background-color: #ffffff;
    padding: 1rem 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 1000;
}

.navbar {
    width: 100%;
}

.navbar ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.navbar a {
    text-decoration: none;
    color: #333333;
    padding: 0.5rem 0;
    position: relative;
    font-weight: 500;
}

.navbar a:hover {
    color: #007bff;
}

.navbar a.active {
    color: #007bff;
    font-weight: 700;
    border-bottom: 2px solid #007bff;
}

.nav-search {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-search input {
    box-sizing: border-box;
    height: 36px;
    padding: 0.4rem 0.8rem;
    border: 1px solid #ccc;
    border-radius: 20px;
    outline: none;
    font-size: 0.9rem;
}

.kbyg-navbar,
.ttd-navbar {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    padding: 0.75rem 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
}

.kbyg-navbar ul,
.ttd-navbar ul {
    display: flex;
    justify-content: center;
    gap: 2rem;
    list-style: none;
    margin: 0 auto;
    padding: 0;
    max-width: 1200px;
}

.kbyg-navbar a,
.ttd-navbar a {
    text-decoration: none;
    color: #007bff;
    font-weight: 500;
    font-size: 0.95rem;
}

.kbyg-navbar a:hover,
.ttd-navbar a:hover {
    text-decoration: underline;
}

.kbyg-text,
.ttd-text {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1.5rem;
    text-align: left;
}

.kbyg-text h2,
.kbyg-text p,
.ttd-text h2,
.ttd-text p {
    text-align: center;
    margin-bottom: 1rem;
}

.carousel {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 8px;
}

.carousel-item {
    display: none;
}

.carousel-item.active {
    display: block;
}

.carousel-item img {
    width: 100%;
    display: block;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 4px;
    z-index: 2;
}

.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

#homepage-content .featured-section {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

#homepage-content .card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

#homepage-content .card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

#homepage-content .featured-card .card-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

#homepage-content .featured-card .card-title {
    font-size: 1.75rem;
    margin: 0.5rem 0;
}

#homepage-content .card-badge {
    display: inline-block;
    background-color: #007bff;
    color: #fff;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    align-self: flex-start;
}

#homepage-content .small-cards-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#homepage-content .small-card {
    display: flex;
    flex-direction: row;
    overflow: hidden;
}

#homepage-content .small-card-img {
    width: 120px;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
}

#homepage-content .small-card-content {
    padding: 0.8rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.small-card .card-title {
    font-size: 1rem;
    margin: 0 0 0.3rem 0;
}

#homepage-content .small-card .card-text {
    font-size: 0.85rem;
    color: #666666;
    margin: 0;
    line-height: 1.3;
}

.booking-cards {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.25rem;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.booking-cards .card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
}

.booking-cards .card-body {
    padding: 1rem;
}

.booking-cards .card:nth-child(1) {
    background-color: #ffe5ec;
}

.booking-cards .card:nth-child(2) {
    background-color: #e2ece9;
}

.booking-cards .card:nth-child(3) {
    background-color: #d8e2dc;
}

.booking-cards .card:nth-child(4) {
    background-color: #f0efeb;
}

.booking-cards .card:nth-child(5) {
    background-color: #fde2e4;
}

.site-footer {
    background-color: #ffffff;
    border-top: 1px solid #e0e0e0;
    padding: 1.5rem 2rem;
    margin-top: 3rem;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.03);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    text-align: center;
}

.footer-content p {
    margin: 0;
    color: #666666;
    font-size: 0.9rem;
}

.footer-nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.footer-nav a {
    text-decoration: none;
    color: #333333;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-nav a:hover {
    color: #007bff;
}

.chat-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.chat-toggle-btn {
    background-color: #007bff;
    color: #ffffff;
    border: none;
    border-radius: 50px;
    padding: 12px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.chat-toggle-btn:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

.chat-window {
    display: none;
    width: 340px;
    height: 440px;
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    flex-direction: column;
    overflow: hidden;
    margin-bottom: 12px;
    border: 1px solid #e9ecef;
}

.chat-window.is-open {
    display: flex;
}

.chat-header {
    background-color: #007bff;
    color: #ffffff;
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.95rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: #28a745;
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.4);
}

.chat-close-btn {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.4rem;
    cursor: pointer;
    line-height: 1;
    opacity: 0.8;
}

.chat-close-btn:hover {
    opacity: 1;
}

.chat-messages {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 320px;
}

.message {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 0.88rem;
    line-height: 1.4;
}

.bot-message {
    background-color: #ffffff;
    color: #212529;
    border: 1px solid #e9ecef;
    border-bottom-left-radius: 4px;
    align-self: flex-start;
}

.chat-input-area {
    padding: 10px 12px;
    background-color: #ffffff;
    border-top: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 8px;
}

.chat-input-area input {
    flex: 1;
    border: 1px solid #ced4da;
    border-radius: 20px;
    padding: 8px 14px;
    font-size: 0.88rem;
    outline: none;
    transition: border-color 0.2s ease;
}

.chat-input-area input:focus {
    border-color: #007bff;
}

.chat-send-btn {
    background-color: #007bff;
    color: #ffffff;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.chat-send-btn:hover {
    background-color: #0056b3;
}