/* ══════════════════════════════════════════════
   Hotel Single Page — Modern Redesign
   Colors: #1C3D3C (teal), #887B63 (gold), #F5F2EC (cream)
   ══════════════════════════════════════════════ */


/* ── Hero Gallery ── */
.hotel-hero { position: relative; margin-bottom: 0; }

.hero-gallery {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 0.4rem;
    max-height: 520px;
    overflow: hidden;
    border-radius: 0 0 var(--theme-radius) var(--theme-radius);
}

.hero-gallery img {
    width: 100%; height: 100%;
    object-fit: cover; cursor: pointer;
    transition: filter var(--theme-transition);
}

.hero-gallery img:hover { filter: brightness(0.92); }

.hero-gallery .hero-main {
    grid-row: 1 / -1;
    min-height: 520px;
}

.hero-gallery-overlay {
    position: absolute; bottom: 1rem; right: 1rem; z-index: 2;
}

.btn-all-photos {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(8px);
    border: 1px solid var(--theme-border);
    border-radius: var(--theme-radius-sm);
    font-size: 0.875rem; font-weight: 600;
    color: var(--theme-text-dark); cursor: pointer;
    transition: all var(--theme-transition);
}

.btn-all-photos:hover { background: #fff; box-shadow: var(--theme-shadow); }
.btn-all-photos svg { width: 16px; height: 16px; }

/* ── Quick Info Bar ── */
.hotel-quick-bar {
    background: #fff;
    border-bottom: 1px solid var(--theme-border);
    padding: 1.25rem 0;
    position: sticky; top: 0; z-index: 100;
    transition: box-shadow var(--theme-transition);
}

.hotel-quick-bar.scrolled { box-shadow: var(--theme-shadow); }

.quick-bar-inner {
    display: flex; align-items: center;
    justify-content: space-between;
    gap: 1.5rem; flex-wrap: wrap;
}

.quick-bar-info {
    display: flex; align-items: center;
    gap: 2rem; flex-wrap: wrap; min-width: 0;
}

.quick-bar-title {
    font-family: "Playfair Display", serif;
    font-size: 1.3rem; font-weight: 700;
    color: var(--theme-primary); margin: 0;
    white-space: nowrap; overflow: hidden;
    text-overflow: ellipsis; max-width: 400px;
}

.quick-bar-meta {
    display: flex; align-items: center; gap: 1.5rem;
}

.quick-bar-item {
    display: inline-flex; align-items: center;
    gap: 0.35rem; font-size: 0.85rem;
    color: var(--theme-text); white-space: nowrap;
}

.quick-bar-item svg {
    width: 16px; height: 16px;
    color: var(--theme-primary); flex-shrink: 0;
}

.quick-bar-actions { display: flex; gap: 0.75rem; flex-shrink: 0; }

/* ── Buttons ── */
.btn-primary {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 0.5rem; padding: 0.65rem 1.5rem;
    background: var(--theme-primary); color: #fff;
    border: none; border-radius: var(--theme-radius-sm);
    font-size: 0.9rem; font-weight: 600;
    text-decoration: none; cursor: pointer;
    transition: all var(--theme-transition); white-space: nowrap;
}

.btn-primary:hover {
    background: #15302f;
    box-shadow: 0 4px 12px rgba(28,61,60,0.25);
}

.btn-secondary {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 0.5rem; padding: 0.65rem 1.5rem;
    background: transparent; color: var(--theme-primary);
    border: 1.5px solid var(--theme-primary);
    border-radius: var(--theme-radius-sm);
    font-size: 0.9rem; font-weight: 600;
    text-decoration: none; cursor: pointer;
    transition: all var(--theme-transition); white-space: nowrap;
}

.btn-secondary:hover { background: var(--theme-primary); color: #fff; }

/* ── Section Styles ── */
.hotel-section { padding: 3.5rem 0; }
.hotel-section:nth-child(even) { background: var(--theme-bg-light); }

.hotel-section-title {
    font-family: "Playfair Display", serif;
    font-size: 1.75rem; font-weight: 700;
    color: var(--theme-primary); margin: 0 0 0.5rem;
}

.hotel-section-subtitle {
    color: var(--theme-text); font-size: 1rem; margin: 0 0 2rem;
}

/* ── Overview ── */
.overview-grid {
    display: grid; grid-template-columns: 1.5fr 1fr;
    gap: 3rem; align-items: start;
}

.overview-text {
    font-family: "Inter", sans-serif;
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--theme-text);
    letter-spacing: 0.01em;
}

.overview-text p {
    margin: 0 0 1.25em;
    text-align: justify;
    text-align-last: left;
    hyphens: auto;
    -webkit-hyphens: auto;
}

.overview-text p:last-child { margin-bottom: 0; }

/* — Подзаголовки внутри описания — */
.overview-text h2 {
    font-family: "Playfair Display", serif;
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--theme-primary);
    margin: 2.25rem 0 0.75rem;
    line-height: 1.3;
}

.overview-text h3 {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--theme-primary);
    margin: 2rem 0 0.6rem;
    line-height: 1.35;
}

.overview-text h4 {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: #2e4544;
    margin: 1.75rem 0 0.5rem;
    line-height: 1.4;
}

.overview-text h5,
.overview-text h6 {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: #3a5251;
    margin: 1.5rem 0 0.4rem;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.overview-text h2:first-child,
.overview-text h3:first-child,
.overview-text h4:first-child,
.overview-text h5:first-child { margin-top: 0; }

/* — Списки — */
.overview-text ul,
.overview-text ol {
    margin: 0.75em 0 1.25em;
    padding-left: 1.5em;
}

.overview-text li {
    margin-bottom: 0.4em;
    line-height: 1.7;
}

.overview-text ul li::marker { color: var(--theme-primary); }

/* — Жирный текст и ссылки — */
.overview-text strong,
.overview-text b {
    font-weight: 600;
    color: #2c3e50;
}

.overview-text a {
    color: var(--theme-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: var(--theme-transition);
}

.overview-text a:hover { color: var(--theme-primary); }

/* — Цитаты — */
.overview-text blockquote {
    border-left: 3px solid var(--theme-accent);
    margin: 1.5em 0;
    padding: 0.75em 1.25em;
    background: var(--theme-bg);
    border-radius: 0 var(--theme-radius) var(--theme-radius) 0;
    font-style: italic;
    color: #5a6570;
}

/* — Разделители — */
.overview-text hr {
    border: none;
    border-top: 1px solid #e0ddd7;
    margin: 2em 0;
}

.overview-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.overview-highlights {
    background: var(--theme-bg);
    border-radius: var(--theme-radius); padding: 1.75rem;
}

.overview-highlights h3 {
    font-family: "Playfair Display", serif;
    font-size: 1.15rem; color: var(--theme-primary); margin: 0 0 1rem;
}

.highlight-item {
    display: flex; align-items: flex-start;
    gap: 0.75rem; padding: 0.6rem 0;
    border-bottom: 1px solid var(--theme-border);
}

.highlight-item:last-child { border-bottom: none; padding-bottom: 0; }

/* — House Rules card in sidebar — */
.sidebar-rules {
    background: var(--theme-bg);
    border-radius: var(--theme-radius);
    padding: 1.75rem;
}

.sidebar-rules h3 {
    font-family: "Playfair Display", serif;
    font-size: 1.15rem;
    color: var(--theme-primary);
    margin: 0 0 0.75rem;
}

.sidebar-rule-group {
    margin-bottom: 0.85rem;
}

.sidebar-rule-group:last-child { margin-bottom: 0; }

.sidebar-rule-title {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--theme-text-dark);
    margin: 0 0 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.sidebar-rules ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-rules li {
    padding: 0.2rem 0;
    font-size: 0.825rem;
    color: var(--theme-text);
    line-height: 1.45;
    padding-left: 1em;
    position: relative;
}

.sidebar-rules li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 5px;
    height: 5px;
    background: var(--theme-accent);
    border-radius: 50%;
}

.highlight-icon {
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    background: #fff; border-radius: 50%; flex-shrink: 0;
    color: var(--theme-primary);
}

.highlight-icon svg { width: 18px; height: 18px; }

.highlight-text {
    font-size: 0.9rem; color: var(--theme-text); line-height: 1.4;
}

.highlight-text strong {
    display: block; color: var(--theme-text-dark);
    font-weight: 600; margin-bottom: 0.15rem;
}

/* ── Rating Badge ── */
.rating-badge {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: var(--theme-primary); color: #fff;
    padding: 0.3rem 0.75rem; border-radius: var(--theme-radius-sm);
    font-weight: 700; font-size: 0.95rem;
}

.rating-badge-lg {
    font-size: 2rem; padding: 0.5rem 1rem;
    border-radius: var(--theme-radius);
}

.rating-label { font-size: 0.8rem; font-weight: 500; opacity: 0.9; }

/* ── Reviews Section ── */
.reviews-header {
    display: flex; align-items: center;
    gap: 2rem; margin-bottom: 2rem; flex-wrap: wrap;
}

.reviews-score-card {
    display: flex; align-items: center; gap: 1rem;
    background: var(--theme-bg);
    padding: 1.25rem 1.75rem; border-radius: var(--theme-radius);
    flex-shrink: 0;
}

.reviews-score-number {
    font-size: 2.5rem; font-weight: 700;
    color: var(--theme-primary); line-height: 1;
}

.reviews-score-text { font-size: 0.85rem; color: var(--theme-text); line-height: 1.3; }
.reviews-score-text strong { display: block; font-size: 1rem; color: var(--theme-text-dark); }

/* ── Guest Review Bars ── */
.review-bars {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem 2rem; margin-bottom: 2.5rem;
}

.review-bar { display: flex; align-items: center; gap: 0.75rem; }

.review-bar-label {
    font-size: 0.85rem; color: var(--theme-text);
    min-width: 120px; white-space: nowrap;
}

.review-bar-track {
    flex: 1; height: 6px; background: var(--theme-border);
    border-radius: 3px; overflow: hidden;
}

.review-bar-fill {
    height: 100%; background: var(--theme-accent);
    border-radius: 3px; transition: width 0.6s ease;
}

.review-bar-value {
    font-size: 0.85rem; font-weight: 600;
    color: var(--theme-text-dark); min-width: 28px; text-align: right;
}

/* ── Review Cards ── */
.reviews-track {
    display: flex; gap: 1.25rem;
    overflow-x: auto; scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -ms-overflow-style: none; scrollbar-width: none;
    padding-bottom: 0.5rem;
}

.reviews-track::-webkit-scrollbar { display: none; }

.review-card {
    flex: 0 0 340px; scroll-snap-align: start;
    background: #fff; border: 1px solid var(--theme-border);
    border-radius: var(--theme-radius); padding: 1.5rem;
    display: flex; flex-direction: column;
    transition: box-shadow var(--theme-transition);
}

.review-card:hover { box-shadow: var(--theme-shadow); }

.review-card-header {
    display: flex; align-items: center;
    justify-content: space-between; margin-bottom: 1rem;
}

.review-author { display: flex; align-items: center; gap: 0.6rem; }

.review-avatar {
    width: 38px; height: 38px; border-radius: 50%;
    background: var(--theme-bg);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; color: var(--theme-primary); font-size: 0.9rem;
    flex-shrink: 0;
}

.review-author-info { line-height: 1.3; }

.review-author-name {
    font-weight: 600; font-size: 0.9rem; color: var(--theme-text-dark);
}

.review-author-location {
    font-size: 0.8rem; color: var(--theme-text);
}

.review-score {
    padding: 0.25rem 0.6rem; border-radius: var(--theme-radius-sm);
    font-weight: 700; font-size: 0.85rem; color: #fff;
}

.review-score.high { background: var(--theme-green); }
.review-score.medium { background: var(--theme-yellow); }

.review-text {
    font-size: 0.9rem; line-height: 1.6;
    color: var(--theme-text); flex: 1;
}

.review-text p { margin: 0 0 0.5em; }

.review-date { font-size: 0.75rem; color: #6b6b6b; margin-top: 0.75rem; }

button.read-more {
    margin-top: auto; padding: 0.4rem 0;
    background: none; border: none;
    color: var(--theme-primary); font-weight: 600;
    font-size: 0.85rem; cursor: pointer;
    text-align: left; max-width: max-content;
}

button.read-more:hover { color: var(--theme-primary); }

.reviews-nav {
    display: flex; gap: 0.75rem; margin-top: 1.25rem;
}

.reviews-nav button {
    width: 40px; height: 40px;
    border: 1px solid var(--theme-border); border-radius: 50%;
    background: #fff; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all var(--theme-transition); padding: 0;
}

.reviews-nav button:hover {
    border-color: var(--theme-primary); background: var(--theme-bg);
}

.reviews-nav button img { width: 20px; height: 20px; }

/* ── Rooms Section ── */
.rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
}

.room-card {
    background: #fff; border: 1px solid var(--theme-border);
    border-radius: var(--theme-radius); padding: 1.5rem;
    display: flex; flex-direction: column; gap: 0.75rem;
    transition: box-shadow var(--theme-transition);
}

.room-card:hover { box-shadow: var(--theme-shadow); }

.room-name {
    font-family: "Playfair Display", serif;
    font-size: 1.1rem; font-weight: 700;
    color: var(--theme-primary); margin: 0;
}

.room-details { display: flex; flex-wrap: wrap; gap: 0.6rem; }

.room-detail {
    display: inline-flex; align-items: center; gap: 0.35rem;
    font-size: 0.85rem; color: var(--theme-text);
    background: var(--theme-bg-light);
    padding: 0.3rem 0.65rem; border-radius: 2rem;
}

.room-detail svg { width: 14px; height: 14px; color: var(--theme-primary); }

.room-price {
    margin-top: auto; padding-top: 0.75rem;
    border-top: 1px solid var(--theme-border);
    display: flex; align-items: baseline; gap: 0.3rem;
}

.room-price-label { font-size: 0.8rem; color: var(--theme-text); }

.room-price-value {
    font-size: 1.25rem; font-weight: 700; color: var(--theme-primary);
}

/* ── Amenities Section ── */
.amenities-highlights {
    display: flex; flex-wrap: wrap; gap: 0.5rem;
    margin-bottom: 2rem;
}
.amenity-chip {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.4rem 0.85rem; background: var(--theme-bg);
    border: 1px solid var(--theme-border); border-radius: 2rem;
    font-size: 0.82rem; color: var(--theme-text-dark);
    font-weight: 500; white-space: nowrap;
}
.amenity-chip-icon {
    width: 14px; height: 14px; color: var(--theme-green);
    flex-shrink: 0; stroke-width: 2.5;
}
.amenities-accordion {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem;
}
.amenity-group {
    background: #fff; border: 1px solid var(--theme-border);
    border-radius: var(--theme-radius); overflow: hidden;
    transition: box-shadow var(--theme-transition);
}
.amenity-group[open] { box-shadow: var(--theme-shadow); }
.amenity-group-header {
    display: flex; align-items: center; gap: 0.65rem;
    padding: 0.9rem 1.15rem; cursor: pointer;
    list-style: none; user-select: none;
    transition: background var(--theme-transition);
}
.amenity-group-header:hover { background: var(--theme-bg-light); }
.amenity-group-header::-webkit-details-marker { display: none; }
.amenity-group-icon {
    width: 22px; height: 22px; display: flex; align-items: center;
    justify-content: center; flex-shrink: 0; color: var(--theme-primary);
}
.amenity-group-icon svg { width: 20px; height: 20px; }
.amenity-group-name {
    font-weight: 600; font-size: 0.9rem; color: var(--theme-primary);
    flex: 1; min-width: 0;
}
.amenity-group-count {
    font-size: 0.75rem; color: var(--theme-text); background: var(--theme-bg);
    padding: 0.15rem 0.55rem; border-radius: 1rem; font-weight: 500;
}
.amenity-chevron {
    width: 18px; height: 18px; color: var(--theme-text);
    transition: transform 0.25s ease; flex-shrink: 0;
}
.amenity-group[open] .amenity-chevron { transform: rotate(180deg); }
.amenity-group .amenity-list {
    padding: 0 1.15rem 1rem; margin: 0;
    list-style: none;
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.1rem 1.5rem;
}
.amenity-list li {
    padding: 0.3rem 0; font-size: 0.84rem;
    color: var(--theme-text);
    display: flex; align-items: flex-start; gap: 0.45rem; line-height: 1.4;
}
.amenity-list li::before {
    content: ""; display: inline-block; width: 5px; height: 5px;
    background: var(--theme-accent); border-radius: 50%;
    flex-shrink: 0; margin-top: 0.45rem;
}

/* ── Surroundings + Map Section ── */
.location-grid {
    display: grid; grid-template-columns: 1fr 1.2fr;
    gap: 2rem; align-items: start;
}

.surroundings-categories {
    display: flex; flex-direction: column; gap: 1.25rem;
}

.surr-category {
    background: #fff; border: 1px solid var(--theme-border);
    border-radius: var(--theme-radius); padding: 1.25rem;
}

.surr-category-title {
    font-weight: 700; font-size: 0.95rem;
    color: var(--theme-primary); margin: 0 0 0.75rem;
    padding-bottom: 0.5rem; border-bottom: 1px solid var(--theme-border);
}

.surr-item {
    display: flex; justify-content: space-between;
    align-items: center; padding: 0.4rem 0;
    font-size: 0.875rem; gap: 1rem;
}

.surr-place { color: var(--theme-text); }

.surr-distance {
    color: var(--theme-primary); font-weight: 600;
    white-space: nowrap; font-size: 0.825rem;
}

.location-map-wrapper { position: sticky; top: 5rem; }

.location-map-wrapper .map-container {
    border-radius: var(--theme-radius); overflow: hidden;
    box-shadow: var(--theme-shadow); height: 480px;
}

.location-address {
    text-align: center; color: var(--theme-text);
    margin-bottom: 1rem; font-size: 0.95rem;
}

.location-address svg {
    vertical-align: -3px; margin-right: 0.3rem; color: var(--theme-primary);
}

/* ── House Rules ── */
.rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.25rem;
}

.rule-card {
    background: #fff; border: 1px solid var(--theme-border);
    border-radius: var(--theme-radius); padding: 1.25rem;
}

.rule-card-title {
    font-weight: 700; color: var(--theme-primary);
    margin: 0 0 0.5rem; font-size: 0.95rem;
}

.rule-card ul { list-style: none; padding: 0; margin: 0; }

.rule-card li {
    padding: 0.3rem 0; font-size: 0.85rem;
    color: var(--theme-text); line-height: 1.5;
}

/* ── Contact Section ── */
.contact-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 3rem; align-items: start;
}

.contact-info-card {
    background: var(--theme-bg);
    border-radius: var(--theme-radius); padding: 2rem;
}

.contact-info-card h3 {
    font-family: "Playfair Display", serif;
    color: var(--theme-primary); margin: 0 0 1.5rem; font-size: 1.3rem;
}

.contact-info-item {
    display: flex; align-items: center; gap: 1rem; padding: 0.75rem 0;
}

.contact-info-icon {
    width: 42px; height: 42px;
    background: var(--theme-accent); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; flex-shrink: 0;
}

.contact-info-icon svg { width: 18px; height: 18px; }

.contact-info-text { font-size: 0.9rem; color: var(--theme-text); }

.contact-info-text a {
    color: var(--theme-primary); text-decoration: none; font-weight: 500;
}

.contact-info-text a:hover { color: var(--theme-primary); }

/* ── Contact Form 7 (matches Contact Us page styling) ── */
.contact-form .wpcf7-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-form .wpcf7-form p {
    margin: 0;
}

.contact-form .wpcf7-form label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--theme-primary);
    margin-bottom: 0.5rem;
}

.contact-form .wpcf7-form input[type="text"],
.contact-form .wpcf7-form input[type="email"],
.contact-form .wpcf7-form input[type="tel"],
.contact-form .wpcf7-form textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--theme-border);
    border-radius: var(--theme-radius-sm);
    font-family: inherit;
    font-size: 1rem;
    color: var(--theme-text-dark);
    transition: border-color var(--theme-transition);
}

.contact-form .wpcf7-form input:focus,
.contact-form .wpcf7-form textarea:focus {
    border-color: var(--theme-primary);
    box-shadow: 0 0 0 1px var(--theme-primary);
}

.contact-form .wpcf7-form textarea {
    min-height: 140px;
    resize: vertical;
}

.contact-form .wpcf7-form input[type="submit"] {
    align-self: flex-start;
    padding: 0.875rem 2.5rem;
    background: var(--theme-primary);
    color: #fff;
    border: none;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--theme-transition);
}

.contact-form .wpcf7-form input[type="submit"]:hover {
    background: #2a5654;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(28, 61, 60, 0.2);
}

.contact-form .wpcf7-response-output {
    margin: 1rem 0 0;
    padding: 1rem;
    border-radius: var(--theme-radius-sm);
    font-size: 0.9375rem;
}

.contact-form .wpcf7-validation-errors,
.contact-form .wpcf7-acceptance-missing {
    border: 2px solid #d9534f;
    background: #f9e6e6;
    color: #d9534f;
}

.contact-form .wpcf7-mail-sent-ok {
    border: 2px solid #5cb85c;
    background: #e6f4e6;
    color: #5cb85c;
}

/* ── Related Hotels ── */
.related-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}

.related-card {
    background: #fff; border: 1px solid var(--theme-border);
    border-radius: var(--theme-radius); overflow: hidden;
    text-decoration: none; color: inherit;
    transition: box-shadow var(--theme-transition), transform var(--theme-transition);
}

.related-card:hover {
    box-shadow: var(--theme-shadow); transform: translateY(-4px);
}

.related-card-img { height: 200px; overflow: hidden; }

.related-card-img img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.4s ease;
}

.related-card:hover .related-card-img img { transform: scale(1.05); }

.related-card-body { padding: 1.25rem; }

.related-card-title {
    font-family: "Playfair Display", serif;
    font-size: 1rem; font-weight: 700;
    color: var(--theme-primary); margin: 0 0 0.3rem; line-height: 1.3;
}

.related-card-location { font-size: 0.8rem; color: var(--theme-text); }

/* ── Gallery images in sections ── */
.section-images {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 1.25rem; margin-top: 2rem;
}

.section-images img {
    width: 100%; height: 280px; object-fit: cover;
    border-radius: var(--theme-radius); cursor: pointer;
    transition: filter var(--theme-transition);
}

.section-images img:hover { filter: brightness(0.92); }

/* ── Gallery Lightbox ── */
.gallery-lightbox {
    position: fixed; inset: 0; z-index: 9999;
    display: none; flex-direction: column;
    align-items: center; justify-content: center;
    opacity: 0; transition: opacity .3s ease;
}
.gallery-lightbox.active { display: flex; opacity: 1; }
.gallery-overlay {
    position: absolute; inset: 0;
    background: rgba(0,0,0,.92);
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.gallery-close {
    position: absolute; top: 1rem; right: 1.25rem;
    background: none; border: none; color: #fff;
    font-size: 2.2rem; cursor: pointer; z-index: 2;
    line-height: 1; opacity: .8; transition: opacity .2s;
}
.gallery-close:hover { opacity: 1; }
.gallery-counter {
    position: absolute; top: 1.2rem; left: 1.25rem;
    color: rgba(255,255,255,.7); font-size: .9rem;
    font-family: var(--font-body); z-index: 2;
}
.gallery-nav {
    position: absolute; top: 50%; transform: translateY(-60%);
    background: rgba(255,255,255,.12); border: none; color: #fff;
    font-size: 1.6rem; width: 48px; height: 48px;
    border-radius: 50%; cursor: pointer; z-index: 2;
    display: flex; align-items: center; justify-content: center;
    opacity: .7; transition: opacity .2s, background .2s;
}
.gallery-nav:hover { opacity: 1; background: rgba(255,255,255,.22); }
.gallery-prev { left: 1rem; }
.gallery-next { right: 1rem; }
.gallery-main {
    position: relative; z-index: 1;
    max-width: 90vw; max-height: 72vh;
    display: flex; align-items: center; justify-content: center;
    user-select: none;
}
.gallery-main img {
    max-width: 100%; max-height: 72vh;
    object-fit: contain; border-radius: 6px;
    transition: opacity .25s ease;
}
.gallery-thumbs {
    position: relative; z-index: 1;
    display: flex; gap: 8px; margin-top: 1rem;
    padding: 6px 12px; max-width: 90vw;
    overflow-x: auto; scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}
.gallery-thumbs::-webkit-scrollbar { height: 4px; }
.gallery-thumbs::-webkit-scrollbar-thumb { background: rgba(255,255,255,.3); border-radius: 4px; }
.gallery-thumbs img {
    width: 72px; height: 50px; object-fit: cover;
    border-radius: 4px; cursor: pointer;
    border: 2px solid transparent; opacity: .55;
    transition: opacity .2s, border-color .2s;
    flex-shrink: 0;
}
.gallery-thumbs img:hover { opacity: .85; }
.gallery-thumbs img.active {
    border-color: var(--theme-accent); opacity: 1;
}
@media (max-width: 768px) {
    .gallery-nav { width: 38px; height: 38px; font-size: 1.3rem; }
    .gallery-prev { left: .5rem; }
    .gallery-next { right: .5rem; }
    .gallery-main { max-height: 60vh; }
    .gallery-main img { max-height: 60vh; }
    .gallery-thumbs img { width: 56px; height: 40px; }
}

/* ── Dialog ── */
dialog.review-dialog {
    border-radius: var(--theme-radius); border: none;
    box-shadow: var(--theme-shadow-lg); max-width: 600px;
    padding: 2rem; position: relative;
}

dialog.review-dialog .title {
    margin: 0 0 0.5rem; padding-right: 3rem; font-size: 1.1rem;
}

dialog.review-dialog .score {
    position: absolute; top: 1rem; right: 1rem;
    padding: 0.4rem 0.8rem; border-radius: var(--theme-radius-sm);
    font-weight: 700; font-size: 0.85rem; color: #fff;
}

button.close-dialog {
    margin-top: 1.5rem; padding: 0.5rem 1.5rem;
    background: var(--theme-primary); color: #fff;
    border: none; border-radius: var(--theme-radius-sm);
    font-weight: 600; cursor: pointer;
}

/* ── Fixed Mobile CTA ── */
#lastcta { display: none; }

/* ── Hide original post header ── */
.hotel > .post-header { display: none; }

/* ═══ Responsive ═══ */

@media (max-width: 1024px) {
    .hero-gallery {
        grid-template-columns: 1fr 1fr; max-height: 400px;
    }
    .hero-gallery .hero-main {
        grid-row: auto; min-height: 400px; grid-column: 1 / -1;
    }
    .overview-grid { grid-template-columns: 1fr; gap: 2rem; }
    .review-bars { grid-template-columns: repeat(2, 1fr); }
    .amenities-accordion { grid-template-columns: repeat(2, 1fr); }
    .location-grid { grid-template-columns: 1fr; }
    .location-map-wrapper { position: static; }
    .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
    .related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .hotel-section { padding: 2.5rem 0; }
    .hotel-section-title { font-size: 1.5rem; }

    .hero-gallery {
        grid-template-columns: 1fr 1fr;
        max-height: none; border-radius: 0; gap: 0.25rem;
    }
    .hero-gallery .hero-main { min-height: 280px; }
    .hero-gallery .hero-thumb { display: none; }
    .hero-gallery .hero-thumb:first-of-type,
    .hero-gallery .hero-thumb:nth-of-type(2) {
        display: block; height: 160px;
    }

    .quick-bar-title { font-size: 1.1rem; max-width: 200px; }
    .quick-bar-meta { display: none; }

    .rooms-grid { grid-template-columns: 1fr; }
    .review-bars { grid-template-columns: 1fr; }
    .amenities-accordion { grid-template-columns: 1fr; }
    .amenity-group .amenity-list { grid-template-columns: 1fr; }
    .related-grid { grid-template-columns: 1fr; }
    .section-images { grid-template-columns: 1fr; }
    .section-images img { height: 220px; }
    .rules-grid { grid-template-columns: 1fr; }

    #lastcta {
        display: block; position: fixed; bottom: 0; left: 0; right: 0;
        padding: 1rem; z-index: 99999;
        background: #fff; border-top: 1px solid var(--theme-border);
        box-shadow: 0 -4px 12px rgba(0,0,0,0.08);
    }
    #lastcta .cta-buttons { display: flex; gap: 0.75rem; }
    #lastcta .cta-phone { display: none; }
    #lastcta .cta-link,
    #lastcta .btn-book {
        flex: 1; text-align: center; padding: 0.75rem;
        background: var(--theme-primary); color: #fff;
        border-radius: var(--theme-radius-sm);
        font-weight: 600; text-decoration: none;
    }
    .location-map-wrapper .map-container { height: 350px; }
}

@media (max-width: 480px) {
    .hero-gallery { grid-template-columns: 1fr; grid-template-rows: auto; }
    .hero-gallery .hero-main { min-height: auto; aspect-ratio: 4 / 3; }
    .hero-gallery .hero-thumb,
    .hero-gallery .hero-thumb:first-of-type,
    .hero-gallery .hero-thumb:nth-of-type(2) { display: none; }

    .quick-bar-inner {
        flex-direction: column; align-items: stretch; gap: 0.75rem;
    }
    .quick-bar-actions { justify-content: stretch; }
    .quick-bar-actions .btn-primary,
    .quick-bar-actions .btn-secondary { flex: 1; }
    .review-card { flex: 0 0 280px; }
    .hotel-section-title { font-size: 1.3rem; }
}

/* ── Star rating in single hotel page ── */
.quick-bar-stars {
    display: inline-flex;
    align-items: center;
}
.quick-bar-stars .hotel-stars .star-icon {
    width: 15px;
    height: 15px;
}
.quick-bar-stars .hotel-stars .star-filled {
    color: var(--theme-accent-dark);
}
.highlight-text .hotel-stars {
    margin-top: 0.25rem;
}
.highlight-text .hotel-stars .star-icon {
    width: 14px;
    height: 14px;
}
.related-card-body .hotel-stars {
    margin-top: 0.15rem;
    margin-bottom: 0.15rem;
}
.related-card-body .hotel-stars .star-icon {
    width: 12px;
    height: 12px;
}
