
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&family=DM+Serif+Display&family=Cormorant+Garamond:ital,wght@1,500&display=swap');

:root {
    --background: #EDEFEA;
    --primary: #17332D;
    --card: #1C3C34;
    --gold: #9C8151;
    --text: #1A201E;
    --muted: #737373;
    --light: #F3F1EA;
    --border: #D7D8D0;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--theme-page, var(--background));
    color: var(--theme-heading, var(--primary));
    font-family: 'Manrope', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.45;
}

/* Üst alan */
.hotel-header {
    height: 196px;
    padding: 14px 0 0;
    /*background: var(--theme-top, var(--primary));*/
    color: var(--theme-wifi-text, var(--light));
    position: relative;
}

.hotel-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 152px;
    background: var(--theme-top, var(--primary));
    z-index: -1;
}

.hotel-brand {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    width: calc(100% - 36px);
    max-width: 358px;
    height: 47px;
    margin: 0 auto;
    padding-top: 8px;
}

.hotel-brand .hotel-logo {
    margin-left: 0;
    object-position: left center;
}

.brand-mark {
    display: grid;
    place-items: center;
    flex: 0 0 39px;
    width: 39px;
    height: 39px;
    border: 1px solid var(--theme-wifi-border, var(--gold));
    border-radius: 50%;
    color: var(--gold);
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 28px;
}

.hotel-logo {
    display: block;
    width: 180px;
    height: auto;
    max-width: 100%;
    max-height: 60px;
    object-fit: contain;
    object-position: left center;
    flex-shrink: 0;
}

.hotel-brand h1 {
    margin: 0;
    color: var(--gold);
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 1;
}

.welcome-text {
    margin: 12px 0 0;
    color: var(--theme-welcome, #D2D5CE);
    text-align: center;
    font-size: 14px;
    white-space: nowrap;
}

/* Wi-Fi kartı */
.wifi-card {
    position: relative;
    width: calc(100% - 36px);
    max-width: 358px;
    min-height: 163px;
    margin: -91px auto 0;
    padding: 15px 18px 18px;
    background: var(--theme-wifi-fill, var(--card));
    border: 1px solid var(--theme-wifi-border, var(--gold));
    border-radius: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.16);
    color: var(--theme-wifi-text, var(--light));
}

.wifi-field {
    margin: 0 0 12px;
}

.wifi-label {
    margin: 0 0 2px;
    color: var(--theme-wifi-label, #A9B3AB);
    font-size: 16px;
    font-weight: 500;
}

.wifi-field:nth-child(2) .wifi-label {
    color: var(--theme-wifi-password-label, var(--theme-wifi-label, #A9B3AB));
}

.wifi-field:nth-child(2) .wifi-value {
    color: var(--theme-wifi-password, var(--theme-wifi-text, var(--light)));
}

.wifi-value {
    margin: 0;
    color: var(--theme-wifi-text, var(--light));
    font-size: 18px;
    line-height: 1.35;
    overflow-wrap: anywhere;
    word-break: normal;
}

.copy-button {
    display: block;
    width: 146px;
    min-height: 30px;
    margin: 2px auto 0;
    padding: 4px 8px;
    border: 1px solid var(--theme-copy-border, var(--gold));
    border-radius: 10px;
    background: var(--theme-copy-fill, var(--card));
    color: var(--theme-copy-text, var(--theme-wifi-text, var(--light)));
    font: 700 14px 'Manrope', sans-serif;
    cursor: pointer;
}

.copy-button:hover,
.review-button:hover {
    filter: brightness(1.12);
}

/* Ana içerik */
.main-content {
    width: calc(100% - 32px);
    max-width: 361px;
    margin: 20px auto 0;
    padding-bottom: 14px;
}

.section-heading {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    color: var(--theme-heading-food, var(--primary));
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    letter-spacing: 0.16px;
}

main.main-content > section.announcements > h2.section-heading {
    color: var(--theme-heading-announcements, var(--primary)) !important;
}

main.main-content > section.content-section:not(.nearby-section) > h2.section-heading {
    color: var(--theme-heading-food, var(--primary)) !important;
}

main.main-content > section.content-section.nearby-section > h2.section-heading {
    color: var(--theme-heading-nearby, var(--primary)) !important;
}

.heading-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    flex: 0 0 18px;
    font-size: 18px;
    font-weight: 700;
}

.heading-icon-image {
    display: block;
    width: 20px;
    height: 20px;
    object-fit: contain;
}

/* Duyurular */
.announcement {
    display: block;
    width: 100%;
    min-height: 27px;
    margin: 0;
    padding: 6px 8px;
    border: 1px solid var(--theme-announcement-border, var(--card));
    border-radius: 10px;
    background: var(--theme-announcement-fill, rgba(238, 238, 238, 0.2));
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.10);
    color: var(--theme-announcement, var(--text));
    font-size: 13px;
}

.announcement-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
}


.announcements {
    margin-bottom: 16px;
}



/* Resepsiyon ve yol tarifi */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}


.quick-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 0;
    min-height: 49px;
    padding: 8px 4px;
    border: 1px solid var(--theme-reception-border, #D7D8D0);
    border-radius: 12px;
    background: var(--theme-reception-fill, #FAFAF7);
    color: var(--theme-reception-text, #202622);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: background-color 160ms ease, border-color 160ms ease;
}

.quick-actions .quick-button:nth-child(2) {
    border-color: var(--theme-directions-border, #D7D8D0);
    background: var(--theme-directions-fill, #FAFAF7);
    color: var(--theme-directions-text, #202622);
}

.quick-actions .quick-button:first-child:hover {
    background: var(--theme-hover-reception, #F3F1EA);
    border-color: var(--theme-reception-border, #B8A27B);
}

.quick-actions .quick-button:nth-child(2):hover {
    background: var(--theme-hover-directions, #F3F1EA);
    border-color: var(--theme-directions-border, #B8A27B);
}

.action-icon {
    color: var(--gold);
    font-size: 22px;
}

/* Yemek ve yakındaki yerler */
.content-section {
    margin-bottom: 16px;
}

.content-section > .section-heading {
    margin-bottom: 9px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.meal-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 0 0 6px;
    margin-bottom: 6px;
    border-bottom: 1px solid var(--theme-food-separator, #D7D8D0);
}

.meal-row:last-child {
    margin-bottom: 0;
    border-bottom: 0;
}

.detail-info {
    flex: 1;
    min-width: 0;
}

.meal-row .detail-name {
    color: var(--theme-food-name, var(--primary));
    font-size: 14px;
    font-weight: 500;
}

.nearby-row .detail-name {
    color: var(--theme-nearby-name, var(--primary));
}

.detail-time {
    flex-shrink: 0;
    color: var(--theme-footer-text, #29483F);
    font-size: 14px;
    white-space: nowrap;
    text-align: right;
}

.detail-note {
    margin: 4px 0 0;
    color: var(--theme-food-description, var(--muted));
    font-size: 12px;
    line-height: 1.55;
}

.nearby-row {
    align-items: center;
    min-height: 27px;
    padding: 0 0 6px;
    margin-bottom: 6px;
    border-bottom: 1px solid var(--theme-nearby-separator, #D7D8D0);
}

.nearby-row:last-child {
    margin-bottom: 0;
}

.nearby-distance {
    max-width: 137px;
    color: var(--theme-food-description, var(--muted));
    text-align: right;
    font-size: 12px;
    line-height: 1.45;
}

/* Google değerlendirme kartı */
.review-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 103px;
    margin-top: 18px;
    padding: 18px 14px;
    border: 1px solid var(--theme-wifi-border, var(--gold));
    border-radius: 20px;
    background: var(--theme-reception-fill, #FAFAF7);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.12);
}

.review-card p {
    margin: 0;
    color: var(--theme-review-text, var(--card));
    font-size: 12px;
    text-align: center;
}

.review-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 37px;
    padding: 7px 14px;
    border: 1px solid var(--theme-review-border, var(--gold));
    border-radius: 10px;
    background: var(--theme-review-fill, var(--card));
    color: var(--theme-review-button-text, var(--light));
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
}

/* Alt bilgi */
.page-footer {
    background: var(--theme-footer, var(--theme-page, var(--background)));
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 54px;
    color: var(--theme-footer-text, #29483F);
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 12px;
    font-style: italic;
    letter-spacing: 0.48px;
}

/* Küçük telefonlar */
@media (max-width: 370px) {
    .welcome-text {
        font-size: 12px;
    }

    .quick-actions {
        gap: 8px;
    }

    .quick-button {
        font-size: 13px;
    }

    .detail-time {
        font-size: 12px;
    }

    .review-card p {
        font-size: 11px;
    }
}

/* Resepsiyon/Yoltarifi Icon */
.action-icon-image {
    display: block;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    object-fit: contain;
    color: var(--gold);
}


/* Ortalanmış logolu oteller */
.hotel-header.center {
    height: 230px;
}

.hotel-header.center::before {
    height: 200px;
}

.hotel-header.center .hotel-brand {
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    height: auto;
    min-height: 100px;
    padding-top: 0;
}

.hotel-header.center .hotel-logo {
    width: 100px;
    height: 100px;
    max-height: 100px;
    object-fit: contain;
    object-position: center;
}

.hotel-header.center .brand-mark {
    flex: 0 0 39px;
}

.hotel-header.center .welcome-text {
    margin-top: 10px;
}

/* Moon Hotel Wi-Fi kartının konumu */
.hotel-header.center + .wifi-card {
    margin-top: -75px;
}


/* Moon Hotel - içerik renkleri */
.hotel-header.center ~ .main-content {
    --muted: #777B83;
    --light: #F5F1E8;
    --border: #DED6C8;
}

/* Duyuru kutuları */
.hotel-header.center ~ .main-content .announcement {
    border-color: var(--theme-announcement-border, #14243A);
    background: var(--theme-announcement-fill, #F8F5EF);
    color: var(--theme-announcement, var(--text));
}

/* Bölüm başlıkları ve ikonlar */
.hotel-header.center ~ .main-content .section-heading {
    color: var(--theme-heading-food, #081323);
}

.hotel-header.center ~ .main-content .heading-icon-image {
    filter: none;
}

/* Hızlı işlem butonları */
.hotel-header.center ~ .main-content .quick-button:first-child {
    border-color: var(--theme-reception-border, #DED6C8);
    background: var(--theme-reception-fill, #FBFAF7);
    color: var(--theme-reception-text, #252B35);
}

.hotel-header.center ~ .main-content .quick-button:nth-child(2) {
    border-color: var(--theme-directions-border, #DED6C8);
    background: var(--theme-directions-fill, #FBFAF7);
    color: var(--theme-directions-text, #252B35);
}

.hotel-header.center ~ .main-content .quick-button:hover {
    background: var(--theme-hover-reception, #F0E8D9);
    border-color: var(--theme-review-border, #D9B477);
}

/* Yeme içme ve yakındaki yerler */
.hotel-header.center ~ .main-content .meal-row {
    border-bottom-color: var(--theme-food-separator, #DED6C8);
}

.hotel-header.center ~ .main-content .detail-time {
    color: var(--theme-food-time, #34465B);
}

.hotel-header.center ~ .main-content .nearby-row {
    border-bottom-color: var(--theme-nearby-separator, #DED6C8);
}

/* Google değerlendirme kartı */
.hotel-header.center ~ .main-content .review-card {
    border-color: var(--theme-review-border, #D9B477);
    background: var(--theme-review-fill, #FBFAF7);
}

.hotel-header.center ~ .main-content .review-card p {
    color: var(--theme-review-text, #252B35);
}

.hotel-header.center ~ .main-content .review-button {
    border-color: var(--theme-review-border, #D9B477);
    background: var(--theme-review-fill, var(--theme-card, #081323));
    color: var(--theme-review-button-text, #F5F1E8);
}

/* Alt bilgi */
.hotel-header.center ~ .main-content .page-footer {
    color: var(--theme-footer-text, #29483F);
}

/* Otellere özel duyuru ikonu hizalaması */
.hotel-header.center ~ .main-content .announcements .heading-icon,
.hotel-header:not(.center) ~ .main-content .announcements .heading-icon {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hotel-header.center ~ .main-content .announcements .heading-icon-image,
.hotel-header:not(.center) ~ .main-content .announcements .heading-icon-image {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.quick-actions .whatsapp-button {
    grid-column: 1 / -1;
    height: 50px;
    min-height: 50px;
}


/* Stage 10 fix: announcement text color must be independent */
.hotel-header.center ~ .main-content .announcements .announcement,
.hotel-header:not(.center) ~ .main-content .announcements .announcement {
    color: var(--theme-announcement, var(--text)) !important;
}
