/* ==========================================================================
   Single Hotel: editorial property profile
   ========================================================================== */

/* The footer color fills any remaining viewport below the profile. */
body.single-hotel-body {
    background-color: #050505;
}

/* Page tokens inherit the established Peru Summit Adventures design system. */
.single-hotel-page {
    --hotel-ink: #171717;
    --hotel-copy: #5d5d5d;
    --hotel-muted: #737373;
    --hotel-red: #f10100;
    --hotel-red-deep: #b90201;
    --hotel-surface: #f7f7f5;
    --hotel-warm: #fffaf5;
    --hotel-line: #e8e8e4;
    --radius: 7px;
    background-color: #ffffff;
    color: var(--hotel-copy);
}

/* Selection carries the single brand accent into the browser surface. */
.single-hotel-page ::selection {
    background-color: var(--hotel-red);
    color: #ffffff;
}

/* The shared hero presents one main property photograph at a stable height. */
.single-hotel-page .tour-category-hero {
    min-height: 620px;
    height: clamp(620px, calc(100svh - 69px), 780px);
    padding-top: 0;
}

/* The property name remains editorial and readable over the main photograph. */
.single-hotel-page .tour-category-hero-title {
    max-width: 15ch;
    font-family: "Metromedium", "Roboto", sans-serif;
    font-size: clamp(2rem, 4.5vw, 3.6rem);
    font-weight: 500;
    letter-spacing: -0.025em;
    line-height: 1;
    text-wrap: balance;
}

/* The location subtitle supports the title without competing with it. */
.single-hotel-page .tour-category-hero-subtitle {
    max-width: 48ch;
    font-size: clamp(1rem, 1.4vw, 1.25rem);
    line-height: 1.5;
}

/* The current main reference photograph fills the shared hero frame. */
.single-hotel-page .tour-category-hero-image {
    object-position: center;
}

/* ==========================================================================
   Photography disclosure
   ========================================================================== */

/* The disclosure uses a horizontal information band without a side border. */
.single-hotel-photo-disclaimer {
    border-bottom: 1px solid var(--hotel-line);
    background-color: var(--hotel-warm);
}

/* The disclosure content stays compact and aligned with the page grid. */
.single-hotel-photo-disclaimer .container {
    display: flex;
    min-height: 58px;
    align-items: center;
    gap: 0.8rem;
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
}

/* The disclosure icon uses the single established accent. */
.single-hotel-photo-disclaimer i {
    color: var(--hotel-red);
    font-size: 1rem;
}

/* Disclosure copy remains readable without taking over the introduction. */
.single-hotel-photo-disclaimer p {
    margin: 0;
    color: var(--hotel-copy);
    font-size: 0.82rem;
    line-height: 1.5;
}

/* ==========================================================================
   Shared single-hotel heading language
   ========================================================================== */

/* Reusable section headings follow the incumbent editorial type roles. */
.single-hotel-page .travel-guide-section-heading {
    margin: 0;
}

/* Major section titles use Metromedium with a controlled responsive scale. */
.single-hotel-page .travel-guide-section-title {
    max-width: 18ch;
    margin: 0;
    color: var(--hotel-ink);
    font-family: "Metromedium", "Roboto", sans-serif;
    font-size: clamp(2rem, 3vw, 2.5rem);
    font-weight: 500;
    letter-spacing: -0.025em;
    line-height: 1.04;
    text-wrap: balance;
}

/* Supporting section copy uses a comfortable editorial measure. */
.single-hotel-page .travel-guide-section-copy {
    max-width: 68ch;
    margin: 1rem 0 0;
    color: var(--hotel-copy);
    font-size: 1rem;
    line-height: 1.7;
}

/* Section heading wrappers establish consistent space before content. */
.single-hotel-section-heading {
    margin-bottom: clamp(2rem, 4vw, 3rem);
}

/* ==========================================================================
   Editorial introduction
   ========================================================================== */

/* The introduction opens the profile with generous reading space. */
.single-hotel-intro {
    padding: clamp(4.5rem, 8vw, 7rem) 0;
}

/* Heading and narrative form an asymmetric two-column editorial layout. */
.single-hotel-intro-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.24fr);
    gap: clamp(2.5rem, 7vw, 7rem);
    align-items: start;
}

/* The lead paragraph carries the strongest reading emphasis. */
.single-hotel-intro-lead {
    margin: 0;
    color: var(--hotel-ink);
    font-size: clamp(1rem, 1.6vw, 1.25rem);
    line-height: 1.66;
}

/* Secondary overview copy maintains a restrained reading measure. */
.single-hotel-intro-copy > p:not(.single-hotel-intro-lead) {
    max-width: 68ch;
    margin: 1.35rem 0 0;
    font-size: 1rem;
    line-height: 1.75;
}

/* Intro actions wrap cleanly while preserving equal touch heights. */
.single-hotel-intro-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
}

/* Shared single-hotel buttons use the established compact action language. */
.single-hotel-button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 0.75rem 1.25rem;
    border: 1px solid var(--hotel-red);
    border-radius: 7px;
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

/* The primary action uses expedition red for immediate recognition. */
.single-hotel-button.is-primary {
    background-color: var(--hotel-red);
    color: #ffffff;
}

/* The secondary action stays quieter with an outlined treatment. */
.single-hotel-button.is-outline {
    background-color: transparent;
    color: var(--hotel-red-deep);
}

/* Pointer interaction deepens the single accent and adds a restrained lift. */
.single-hotel-button:hover {
    border-color: var(--hotel-red-deep);
    background-color: var(--hotel-red-deep);
    color: #ffffff;
    transform: translateY(-2px);
}

/* Keyboard users receive a clear brand-aligned focus ring. */
.single-hotel-button:focus-visible,
.single-hotel-map-link:focus-visible,
.single-hotel-contact a:focus-visible {
    border-radius: 7px;
    outline: 3px solid rgba(241, 1, 0, 0.3);
    outline-offset: 4px;
}

/* ==========================================================================
   Property gallery
   ========================================================================== */

/* The gallery sits on a quiet surface that separates media from reading copy. */
.single-hotel-gallery-section {
    padding: clamp(4.5rem, 8vw, 7rem) 0;
    background-color: var(--hotel-surface);
}

/* The main gallery frame clips media to the required seven-pixel silhouette. */
.single-hotel-gallery-main {
    position: relative;
    overflow: hidden;
    border-radius: 7px;
    background-color: var(--hotel-line);
}

/* Each main slide uses a wide photographic field. */
.single-hotel-gallery-figure {
    position: relative;
    height: clamp(420px, 62vw, 760px);
    margin: 0;
    overflow: hidden;
    border-radius: 7px;
}

/* Gallery images fill their frame without distortion. */
.single-hotel-gallery-figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Captions disclose the temporary media status directly on each image. */
.single-hotel-gallery-figure figcaption {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    padding: 0.6rem 0.75rem;
    border-radius: 7px;
    background-color: rgba(23, 23, 23, 0.9);
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.025em;
    text-transform: uppercase;
}

/* Gallery controls remain visible without obscuring the subject. */
.single-hotel-gallery-controls {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    z-index: 4;
    display: flex;
    gap: 0.5rem;
}

/* Gallery buttons use an opaque dark ground for dependable contrast. */
.single-hotel-gallery-button {
    display: inline-grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border: 0;
    border-radius: 7px;
    background-color: rgba(23, 23, 23, 0.92);
    color: #ffffff;
    cursor: pointer;
    transition: background-color 180ms ease, transform 180ms ease;
}

/* Hover feedback keeps the gallery controls within the one-red system. */
.single-hotel-gallery-button:hover {
    background-color: var(--hotel-red);
    transform: translateY(-2px);
}

/* Gallery focus remains visible over both light and dark photography. */
.single-hotel-gallery-button:focus-visible,
.single-hotel-gallery-thumb:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: -5px;
}

/* Counter and progress line create precise gallery wayfinding. */
.single-hotel-gallery-meta {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1rem;
    align-items: center;
    margin: 1.25rem 0;
}

/* Tabular numerals prevent the counter from shifting between slides. */
.single-hotel-gallery-counter {
    color: var(--hotel-ink);
    font-size: 0.82rem;
    font-variant-numeric: tabular-nums;
    font-weight: 900;
    letter-spacing: 0.04em;
}

/* The progress track provides a lightweight overview of gallery position. */
.single-hotel-gallery-progress {
    position: relative;
    display: block;
    height: 2px;
    overflow: hidden;
    border-radius: 7px;
    background-color: #d7d7d2;
}

/* The active progress bar is driven by the gallery script. */
.single-hotel-gallery-progress span {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 7px;
    background-color: var(--hotel-red);
    transform: scaleX(0.2);
    transform-origin: left center;
    transition: transform 320ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* Thumbnail overflow is clipped by Swiper rather than the document viewport. */
.single-hotel-gallery-thumbs {
    overflow: hidden;
}

/* Thumbnail buttons provide a consistent 3:2 media crop. */
.single-hotel-gallery-thumb {
    display: block;
    width: 100%;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 7px;
    background-color: var(--hotel-line);
    cursor: pointer;
    aspect-ratio: 3 / 2;
    opacity: 0.62;
    transition: opacity 180ms ease, transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* Thumbnail images fill their compact selection frame. */
.single-hotel-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Active and hovered thumbnails become fully legible. */
.single-hotel-gallery-thumbs .swiper-slide-thumb-active .single-hotel-gallery-thumb,
.single-hotel-gallery-thumb:hover {
    opacity: 1;
    transform: translateY(-2px);
}

/* The current thumbnail receives an inset brand focus without changing layout. */
.single-hotel-gallery-thumbs .swiper-slide-thumb-active .single-hotel-gallery-thumb {
    box-shadow: inset 0 0 0 3px var(--hotel-red);
}

/* ==========================================================================
   Hotel detail cards
   ========================================================================== */

/* The details section gives verified operational facts generous separation. */
.single-hotel-details {
    padding: clamp(4.5rem, 8vw, 7rem) 0;
}

/* Four compact columns keep operational details easy to compare. */
.single-hotel-detail-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

/* Static detail cards use a neutral outline instead of decorative elevation. */
.single-hotel-detail-card {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 1rem;
    min-height: 170px;
    align-content: start;
    padding: 1.25rem;
    border: 1px solid var(--hotel-line);
    border-radius: 7px;
    background-color: #ffffff;
}

/* Detail icons use a compact seven-pixel red tile. */
.single-hotel-detail-icon {
    display: inline-grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 7px;
    background-color: var(--hotel-red);
    color: #ffffff;
    font-size: 1rem;
}

/* Detail labels distinguish metadata from the primary fact. */
.single-hotel-detail-label {
    margin: 0;
    color: var(--hotel-muted);
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.025em;
    line-height: 1.25;
    text-transform: uppercase;
}

/* Detail values use the display family at a compact component scale. */
.single-hotel-detail-value {
    margin: 0.45rem 0 0;
    color: var(--hotel-ink);
    font-family: "Metromedium", "Roboto", sans-serif;
    font-size: 1.25rem !important;
    font-weight: 500;
    line-height: 1.25;
}

/* Supporting notes clarify conditions without competing with the fact. */
.single-hotel-detail-note {
    margin: 0.65rem 0 0;
    color: var(--hotel-copy);
    font-size: 0.84rem;
    line-height: 1.5;
}

/* ==========================================================================
   Location and map
   ========================================================================== */

/* The location section uses warm paper to distinguish physical context. */
.single-hotel-location {
    padding: clamp(4.5rem, 8vw, 7rem) 0;
    background-color: var(--hotel-warm);
}

/* Map and location narrative share an asymmetric two-column composition. */
.single-hotel-location-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
    gap: clamp(2rem, 5vw, 5rem);
    align-items: stretch;
}

/* The map frame maintains a useful browsing height and seven-pixel corners. */
.single-hotel-map-wrap {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    min-height: 520px;
    overflow: hidden;
    border-radius: 7px;
    background-color: var(--hotel-line);
}

/* The Google Maps embed fills the complete media frame. */
.single-hotel-map-wrap iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 474px;
    border: 0;
}

/* The recovery row keeps an external map route available if the embed is blocked. */
.single-hotel-map-recovery {
    padding: 0.85rem 1rem;
    margin: 0;
    background-color: var(--hotel-ink);
    color: #ffffff;
    font-size: 0.82rem;
    line-height: 1.45;
    text-align: center;
}

/* The recovery link remains distinct and keyboard-visible on the dark row. */
.single-hotel-map-recovery a {
    color: #ffffff;
    font-weight: 900;
    text-decoration: underline;
    text-decoration-color: var(--hotel-red);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

/* The recovery link uses the brand red for direct hover feedback. */
.single-hotel-map-recovery a:hover {
    color: var(--hotel-red);
}

/* Location copy centers vertically alongside the map. */
.single-hotel-location-content {
    align-self: center;
}

/* The address uses a warm continuous block without a side accent. */
.single-hotel-address {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 0.9rem;
    padding: 1.1rem;
    margin-top: 2rem;
    border-radius: 7px;
    background-color: #ffffff;
}

/* The map pin remains subordinate to the address text. */
.single-hotel-address > span {
    display: inline-grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 7px;
    background-color: var(--hotel-red);
    color: #ffffff;
}

/* Address metadata uses the established compact label role. */
.single-hotel-address small {
    display: block;
    color: var(--hotel-muted);
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.025em;
    text-transform: uppercase;
}

/* The physical address remains the most legible content in its block. */
.single-hotel-address p {
    margin: 0.35rem 0 0;
    color: var(--hotel-ink);
    font-size: 1rem;
    line-height: 1.55;
}

/* The external map action remains clearly connected to the address. */
.single-hotel-map-link {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    gap: 0.55rem;
    margin-top: 1.25rem;
    color: var(--hotel-red-deep);
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

/* Map-link hover shifts to the brighter expedition red. */
.single-hotel-map-link:hover {
    color: var(--hotel-red);
}

/* ==========================================================================
   Contact and social close
   ========================================================================== */

/* The contact section anchors the profile with a decisive dark surface. */
.single-hotel-contact {
    padding: clamp(4.5rem, 8vw, 7rem) 0;
    background-color: var(--hotel-ink);
    color: #ffffff;
}

/* Contact message and official channels form two balanced columns. */
.single-hotel-contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: clamp(3rem, 8vw, 8rem);
    align-items: start;
}

/* Dark contact headings reverse to white while preserving typography. */
.single-hotel-contact .travel-guide-section-title,
.single-hotel-contact .travel-guide-section-copy {
    color: #ffffff;
}

/* Contact supporting copy uses a warmer white for readable hierarchy. */
.single-hotel-contact .travel-guide-section-copy {
    color: rgba(255, 255, 255, 0.76);
}

/* The primary planning action is the strongest control in the close. */
.single-hotel-contact-primary {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 0.8rem 1.25rem;
    margin-top: 2rem;
    border-radius: 7px;
    background-color: var(--hotel-red);
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    transition: background-color 180ms ease, transform 180ms ease;
}

/* Contact action hover deepens the red and adds a controlled lift. */
.single-hotel-contact-primary:hover {
    background-color: var(--hotel-red-deep);
    color: #ffffff;
    transform: translateY(-2px);
}

/* Contact rows rely on horizontal separators rather than isolated cards. */
.single-hotel-contact-row {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 1rem;
    align-items: center;
    min-height: 78px;
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    color: #ffffff;
    transition: color 180ms ease;
}

/* The final contact row closes the list with the same quiet divider. */
.single-hotel-contact-row:last-child {
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

/* Contact row icons share one compact red tile. */
.single-hotel-contact-icon {
    display: inline-grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 7px;
    background-color: var(--hotel-red);
    color: #ffffff;
}

/* Contact labels provide channel context above each value. */
.single-hotel-contact-row small {
    display: block;
    margin-bottom: 0.25rem;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

/* Contact values wrap safely for long emails and street addresses. */
.single-hotel-contact-row > span:last-child {
    min-width: 0;
    overflow-wrap: anywhere;
    font-size: 1rem;
    line-height: 1.5;
}

/* Contact row hover uses a tinted white rather than adding another accent. */
.single-hotel-contact-row:hover {
    color: rgba(255, 255, 255, 0.76);
}

/* Social profile heading keeps the channel group compact. */
.single-hotel-socials {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* The social label uses the same compact operational type role. */
.single-hotel-socials p {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

/* Social controls remain grouped while wrapping on narrow screens. */
.single-hotel-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Social buttons use square touch targets and the universal radius. */
.single-hotel-social-links a {
    display: inline-grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 7px;
    color: #ffffff;
    transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

/* Social hover feedback is purposeful and consistent with other actions. */
.single-hotel-social-links a:hover {
    border-color: var(--hotel-red);
    background-color: var(--hotel-red);
    color: #ffffff;
    transform: translateY(-2px);
}

/* ==========================================================================
   Responsive adaptations
   ========================================================================== */

/* Large tablets reduce the detail grid to two balanced columns. */
@media (max-width: 1199.98px) {
    .single-hotel-detail-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Tablets stack editorial, location and contact columns in DOM order. */
@media (max-width: 991.98px) {
    .single-hotel-intro-layout,
    .single-hotel-location-layout,
    .single-hotel-contact-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .single-hotel-location-content {
        align-self: start;
    }

    .single-hotel-map-wrap,
    .single-hotel-map-wrap iframe {
        min-height: 440px;
    }
}

/* Phones use one detail column and compact media proportions. */
@media (max-width: 575.98px) {
    .single-hotel-page .tour-category-hero {
        min-height: 560px;
        height: 78svh;
    }

    .single-hotel-page .tour-category-hero-title {
        font-size: clamp(2rem, 10vw, 2.5rem);
    }

    .single-hotel-photo-disclaimer .container {
        align-items: flex-start;
        padding-top: 0.9rem;
        padding-bottom: 0.9rem;
    }

    .single-hotel-intro-actions,
    .single-hotel-button,
    .single-hotel-contact-primary {
        width: 100%;
    }

    .single-hotel-gallery-figure {
        height: 340px;
    }

    .single-hotel-gallery-figure figcaption {
        right: 0.75rem;
        bottom: 0.75rem;
        max-width: calc(100% - 1.5rem);
    }

    .single-hotel-gallery-controls {
        bottom: 0.75rem;
        left: 0.75rem;
    }

    .single-hotel-gallery-button {
        width: 44px;
        height: 44px;
    }

    .single-hotel-detail-grid {
        grid-template-columns: 1fr;
    }

    .single-hotel-detail-card {
        min-height: 0;
    }

    .single-hotel-map-wrap,
    .single-hotel-map-wrap iframe {
        min-height: 360px;
    }

    .single-hotel-socials {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Reduced-motion visitors receive the same content without animated movement. */
@media (prefers-reduced-motion: reduce) {
    .single-hotel-page *,
    .single-hotel-page *::before,
    .single-hotel-page *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
