/* =====================================================================
   GCC Bus theme - modern refresh (v1.1)
   One width for every section (the header's), one radius and shadow scale,
   and gentle motion that switches off for visitors who prefer less motion.
   ===================================================================== */

:root {
    --gcc-radius: 20px;
    --gcc-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
    --gcc-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05), 0 10px 30px -18px rgba(15, 23, 42, 0.28);
    --gcc-shadow-lg: 0 2px 6px rgba(15, 23, 42, 0.05), 0 34px 70px -34px rgba(15, 23, 42, 0.5);
    --gcc-header-h: 78px;
    interpolate-size: allow-keywords;
}

html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

[id] {
    scroll-margin-top: calc(var(--gcc-header-h) + 24px);
}

::selection {
    background: var(--wp--preset--color--accent);
    color: var(--wp--preset--color--navy);
}

:where(a, button, summary, input, select, textarea, [tabindex]):focus-visible {
    outline: 2px solid var(--wp--preset--color--accent);
    outline-offset: 3px;
    border-radius: 6px;
}

h1, h2, h3 {
    letter-spacing: -0.02em;
    text-wrap: balance;
}

p {
    text-wrap: pretty;
}

/* ---------- Sticky, frosted header ---------- */

.wp-site-blocks > header.wp-block-template-part {
    position: sticky;
    top: 0;
    z-index: 100;
}

.admin-bar .wp-site-blocks > header.wp-block-template-part {
    top: var(--wp-admin--admin-bar--height, 32px);
}

/* The blur lives on a background layer, not on the header itself: a backdrop-filter
   on the header would trap the full-screen mobile menu inside the header's height. */
.gcc-site-header.has-navy-background-color {
    position: relative;
    background-color: transparent !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    isolation: isolate;
}

.gcc-site-header.has-navy-background-color::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(20, 29, 49, 0.95);
    -webkit-backdrop-filter: saturate(150%) blur(14px);
    backdrop-filter: saturate(150%) blur(14px);
    pointer-events: none;
}

.gcc-site-header .wp-block-navigation a.wp-block-navigation-item__content {
    position: relative;
    padding: 6px 0;
    transition: color 0.25s var(--gcc-ease);
}

.gcc-site-header .wp-block-navigation a.wp-block-navigation-item__content::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--wp--preset--color--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s var(--gcc-ease);
}

.gcc-site-header .wp-block-navigation a.wp-block-navigation-item__content:hover::after,
.gcc-site-header .wp-block-navigation .current-menu-item > a.wp-block-navigation-item__content::after {
    transform: scaleX(1);
}

.wp-block-button.is-style-phone .wp-block-button__link {
    border-radius: 999px;
}

/* ---------- Eyebrow labels get a short gold rule ---------- */

.is-style-eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
}

.is-style-eyebrow::before {
    content: "";
    width: 26px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    flex: none;
}

.is-style-eyebrow.has-text-align-center {
    justify-content: center;
}

/* ---------- Section intros: heading left, text right ---------- */

.gcc-section-intro {
    align-items: flex-end;
}

.gcc-section-intro > .wp-block-group {
    flex: 1 1 420px;
}

.gcc-section-intro__text {
    flex: 0 1 440px;
    margin: 0;
    font-size: 15px;
}

/* ---------- Hero ---------- */

.gcc-hero {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--gcc-shadow-lg);
}

.gcc-hero h1 {
    font-size: clamp(34px, 4.4vw, 56px);
    line-height: 1.06;
}

.gcc-hero .wp-block-cover__image-background {
    animation: gcc-hero-settle 1.6s var(--gcc-ease) both;
}

@keyframes gcc-hero-settle {
    from { transform: scale(1.06); }
    to { transform: scale(1); }
}

.gcc-hero .is-style-pill {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

/* ---------- Destination cards (whole card links to that destination's tours) ---------- */

.gcc-card {
    position: relative;
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: var(--gcc-shadow-sm);
    transition: transform 0.4s var(--gcc-ease), box-shadow 0.4s var(--gcc-ease);
}

.gcc-card:hover,
.gcc-card:focus-within {
    transform: translateY(-6px);
    box-shadow: var(--gcc-shadow-lg);
}

.gcc-card__media {
    overflow: hidden;
}

.gcc-card__media .wp-block-cover__image-background {
    transition: transform 0.9s var(--gcc-ease);
}

.gcc-card:hover .gcc-card__media .wp-block-cover__image-background {
    transform: scale(1.06);
}

.gcc-card__media::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 45%;
    background: linear-gradient(180deg, rgba(20, 29, 49, 0) 0%, rgba(20, 29, 49, 0.35) 100%);
    pointer-events: none;
}

.gcc-card .is-style-pill {
    background: rgba(26, 26, 41, 0.72);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.gcc-card__title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.gcc-card__title a {
    color: inherit;
    text-decoration: none;
}

.gcc-card__title a::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    border-radius: inherit;
}

.gcc-card__title::after {
    content: "";
    flex: none;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid var(--wp--preset--color--line);
    background: no-repeat center / 16px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F172A' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
    transition: transform 0.35s var(--gcc-ease), background-color 0.35s var(--gcc-ease), border-color 0.35s var(--gcc-ease);
}

.gcc-card:hover .gcc-card__title::after {
    transform: translateX(4px);
    background-color: var(--wp--preset--color--accent);
    border-color: var(--wp--preset--color--accent);
}

/* ---------- FAQ: heading stays in view beside the questions ---------- */

@media (min-width: 782px) {
    .gcc-faq__intro {
        position: sticky;
        top: calc(var(--gcc-header-h) + 32px);
        align-self: flex-start;
    }
}

.wp-block-details.is-style-faq {
    border-radius: 16px;
    transition: border-color 0.25s var(--gcc-ease), box-shadow 0.25s var(--gcc-ease);
}

.wp-block-details.is-style-faq + .wp-block-details.is-style-faq {
    margin-top: 12px;
}

.wp-block-details.is-style-faq:hover {
    border-color: #CBD5E1;
}

.wp-block-details.is-style-faq[open] {
    border-color: rgba(197, 160, 89, 0.55);
    box-shadow: var(--gcc-shadow-sm);
}

.wp-block-details.is-style-faq summary {
    padding: 22px 64px 22px 24px;
    font-size: 16px;
}

/* Plus / minus in a circle */
.wp-block-details.is-style-faq summary::after {
    right: 22px;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 999px;
    background:
        linear-gradient(currentColor, currentColor) center / 12px 2px no-repeat,
        linear-gradient(currentColor, currentColor) center / 2px 12px no-repeat,
        var(--wp--preset--color--mist);
    transform: translateY(-50%);
    transition: transform 0.3s var(--gcc-ease), background-color 0.3s var(--gcc-ease);
}

.wp-block-details.is-style-faq[open] summary::after {
    transform: translateY(-50%) rotate(45deg);
    background-color: rgba(197, 160, 89, 0.18);
}

.wp-block-details.is-style-faq > :not(summary) {
    padding: 0 24px 22px;
    font-size: 15px;
    line-height: 1.7;
}

/* Smooth open and close where the browser supports it */
.wp-block-details.is-style-faq::details-content {
    height: 0;
    overflow: clip;
    transition: height 0.35s var(--gcc-ease), content-visibility 0.35s allow-discrete;
}

.wp-block-details.is-style-faq[open]::details-content {
    height: auto;
}

/* ---------- Contact: glass highlight chips, raised form card ---------- */

.gcc-contact-hero h1 {
    font-size: clamp(32px, 4vw, 52px);
}

.gcc-ticks p {
    margin: 0;
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.gcc-ticks p::before {
    content: "\2713";
    margin-right: 8px;
    color: var(--wp--preset--color--accent);
    font-weight: 700;
}

@media (min-width: 600px) {
    .gcc-ticks.is-layout-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.gcc-form-card {
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: var(--gcc-shadow-lg);
    color: var(--wp--preset--color--ink);
}

/* The banner turns its text white; the form card keeps dark text */
.wp-block-cover .gcc-form-card :where(h1, h2, h3, h4, label) {
    color: var(--wp--preset--color--ink);
}

.wp-block-cover .gcc-form-card .is-style-eyebrow {
    color: var(--wp--preset--color--gold-text);
}

/* ---------- Buttons ---------- */

.wp-element-button,
.wp-block-button__link {
    transition: background-color 0.25s var(--gcc-ease), color 0.25s var(--gcc-ease), transform 0.25s var(--gcc-ease), border-color 0.25s var(--gcc-ease);
}

.wp-element-button:hover,
.wp-block-button__link:hover {
    transform: translateY(-1px);
}

/* ---------- Footer ---------- */

.gcc-site-footer {
    border-top: 1px solid rgba(197, 160, 89, 0.22);
}

.gcc-site-footer a {
    transition: color 0.25s var(--gcc-ease), padding-left 0.25s var(--gcc-ease);
}

.gcc-site-footer .wp-block-list a:hover {
    padding-left: 4px;
}

.gcc-site-footer iframe {
    border-radius: 14px;
    filter: grayscale(0.25) contrast(1.05);
}

/* ---------- Plugin blocks: header width and shared radius ---------- */

.gcc-single-tour-wrap {
    max-width: var(--wp--style--global--wide-size, 1360px) !important;
}

/* Light background runs edge to edge; content keeps the header's edges */
.wp-block-gcc-single-tour .gcc-single-tour-page-outer {
    padding-left: var(--wp--style--root--padding-left) !important;
    padding-right: var(--wp--style--root--padding-right) !important;
}

.wp-block-gcc-single-tour .gcc-single-tour-wrap {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.wp-block-gcc-tours-grid .gcc-min-card {
    border-radius: var(--gcc-radius) !important;
}

.wp-block-gcc-search-bar .gcc-min-search-card {
    box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.55) !important;
}

/* ---------- Small screens ---------- */

@media (max-width: 781px) {
    :root {
        --gcc-header-h: 66px;
    }

    .gcc-section-intro__text {
        flex-basis: 100%;
    }
}

/* ---------- Less motion when the visitor asks for it ---------- */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }

    .gcc-card:hover,
    .gcc-card:focus-within {
        transform: none;
    }
}

/* =====================================================================
   v1.2 polish: clearer buttons and cards, larger tap targets on phones,
   calmer links and a consistent focus ring. Visual only, no content changes.
   ===================================================================== */

html {
    color-scheme: light;
}

img,
video {
    height: auto;
    max-width: 100%;
}

/* Buttons: a small lift and shadow on hover, pressed state on click */
.wp-block-button__link {
    transition: background-color 0.25s var(--gcc-ease), color 0.25s var(--gcc-ease), transform 0.25s var(--gcc-ease), box-shadow 0.25s var(--gcc-ease);
}

.wp-block-button__link:hover {
    transform: translateY(-1px);
    box-shadow: var(--gcc-shadow-sm);
}

.wp-block-button__link:active {
    transform: translateY(0) scale(0.99);
}

/* Body links: underline that keeps its gap, so descenders stay readable */
.entry-content a:not(.wp-block-button__link),
.wp-block-post-content a:not(.wp-block-button__link),
.wp-block-paragraph a {
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

/* Cards lift together with their shadow when hovered or focused inside */
.gcc-card {
    transition: transform 0.35s var(--gcc-ease), box-shadow 0.35s var(--gcc-ease);
}

.gcc-card:hover,
.gcc-card:has(:focus-visible) {
    transform: translateY(-4px);
    box-shadow: var(--gcc-shadow-lg);
}

/* FAQ rows: a clearer open state */
.wp-block-details.is-style-faq {
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.wp-block-details.is-style-faq[open] {
    border-color: var(--wp--preset--color--accent);
    box-shadow: var(--gcc-shadow-sm);
}

.wp-block-details.is-style-faq summary:hover {
    color: var(--wp--preset--color--gold-text);
}

/* Phones: menu rows and the phone button are easy to tap (44px minimum) */
@media (max-width: 781px) {
    .gcc-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
        font-size: 18px;
        letter-spacing: 0.02em;
    }

    .gcc-site-header .wp-block-navigation__responsive-container-close {
        width: 44px;
        height: 44px;
    }
}

.wp-block-button.is-style-phone .wp-block-button__link {
    min-height: 44px;
}

/* Arabic (right-to-left): the search card lines up with the Arabic headline on the right edge */
html[dir="rtl"] .gcc-min-search-shell.gcc-search-align-left,
html[dir="rtl"] .gcc-min-search-shell.gcc-search-align-center {
    margin-left: auto !important;
    margin-right: 0 !important;
}

/* Popular routes: quick links under the home search box */
.gcc-popular-routes {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
}

.gcc-popular-routes__label {
    color: #FFFFFF;
    opacity: 0.85;
    font-size: 13px;
    font-weight: 600;
    margin-right: 4px;
}

.gcc-popular-routes a {
    color: #FFFFFF;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(15, 23, 42, 0.35);
}

.gcc-popular-routes a:hover,
.gcc-popular-routes a:focus-visible {
    background: #C5A059;
    border-color: #C5A059;
    color: #0F172A;
}

/* Phones: home hero panel uses 20px inside padding, and no tall minimum height */
@media (max-width: 600px) {
    .wp-block-cover.gcc-hero {
        padding: 20px !important;
        min-height: 0 !important;
    }
}

/* Phones: keep the phone button round (see the phone rule in style.css) */
@media (max-width: 600px) {
    .wp-block-button.is-style-phone .wp-block-button__link {
        border-radius: 50% !important;
    }
}

/* Footer: calmer rhythm for the links and column headings */
.gcc-site-footer h2,
.gcc-site-footer h3,
.gcc-site-footer h4 {
    letter-spacing: 0.01em;
}

.gcc-site-footer .wp-block-list li {
    line-height: 1.5;
}

/* Keyboard users always see where they are */
.gcc-site-header .wp-block-navigation a:focus-visible,
.gcc-site-footer a:focus-visible {
    outline-color: var(--wp--preset--color--accent);
}

@media print {
    .gcc-site-header,
    .gcc-site-footer,
    .wp-block-button {
        display: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .gcc-card,
    .gcc-card:hover,
    .wp-block-button__link,
    .wp-block-button__link:hover {
        transform: none;
        transition: none;
    }
}

/* =====================================================================
   v1.2.1: mobile menu layout, a redesigned footer and header polish.
   ===================================================================== */

/* Mobile menu: full-screen, left-aligned rows that are easy to tap */
@media (max-width: 781px) {
    .gcc-site-header .wp-block-navigation__responsive-container.is-menu-open {
        padding: 24px 24px 40px;
    }

    .gcc-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content,
    .gcc-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
        align-items: stretch !important;
        width: 100%;
        margin-top: 24px;
    }

    .gcc-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .gcc-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
        width: 100%;
        justify-content: flex-start;
        padding: 16px 0;
        font-size: 18px;
    }
}

/* Footer: room to breathe, a gold accent line at the top and a calmer grid */
.gcc-site-footer {
    position: relative;
    overflow: hidden;
    margin-top: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.gcc-site-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: min(360px, 60%);
    height: 2px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, var(--wp--preset--color--accent), transparent);
}

.gcc-site-footer .wp-block-columns {
    row-gap: 48px;
}

/* Column headings become small gold labels with a rule, like the eyebrows above */
.gcc-site-footer .wp-block-column > p:first-child {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 22px !important;
    font-size: 12px !important;
    font-weight: 600;
    letter-spacing: 0.14em !important;
    color: var(--wp--preset--color--gold) !important;
}

.gcc-site-footer .wp-block-column > p:first-child::before {
    content: "";
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    flex: none;
}

.gcc-site-footer .wp-block-column > p:first-child + .wp-block-list {
    margin-top: 0;
}

.gcc-site-footer .wp-block-list li {
    line-height: 1.5;
}

.gcc-site-footer .wp-block-list li + li {
    margin-top: 12px;
}

.gcc-site-footer .wp-block-list a {
    display: inline-block;
    transition: color 0.2s var(--gcc-ease), transform 0.2s var(--gcc-ease);
}

.gcc-site-footer .wp-block-list a:hover {
    transform: translateX(3px);
}

/* Logo column: the description reads as a proper lead-in */
.gcc-site-footer .wp-block-column:first-child > p {
    max-width: 34ch;
    line-height: 1.7 !important;
    color: var(--wp--preset--color--slate-light) !important;
}

/* Map card */
.gcc-site-footer iframe {
    height: 180px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    box-shadow: 0 18px 40px -28px rgba(0, 0, 0, 0.6);
}

/* Divider and copyright line */
.gcc-site-footer .wp-block-separator {
    width: 100%;
    height: 1px;
    margin-top: 48px !important;
    margin-bottom: 24px !important;
    border: 0;
    background: rgba(255, 255, 255, 0.1) !important;
}

.gcc-site-footer > .wp-block-paragraph {
    margin: 0 !important;
    letter-spacing: 0.01em;
}

/* Header gains a soft shadow once the visitor scrolls (header.js) */
.gcc-site-header.has-navy-background-color.is-scrolled {
    box-shadow: 0 10px 30px -18px rgba(15, 23, 42, 0.6);
}

.gcc-site-header.has-navy-background-color {
    transition: box-shadow 0.3s ease;
}

@media (max-width: 781px) {
    .gcc-site-footer .wp-block-columns {
        row-gap: 40px;
    }

    .gcc-site-footer iframe {
        height: 160px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gcc-site-footer .wp-block-list a,
    .gcc-site-header.has-navy-background-color {
        transition: none;
    }
}


/* =====================================================================
   v1.2.2: English / Arabic selector, back-to-top button.
   ===================================================================== */

.gcc-lang {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin-right: 14px;
    padding: 3px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
}

.gcc-lang__btn {
    min-height: 32px;
    padding: 6px 11px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--wp--preset--color--pale);
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.2s var(--gcc-ease), color 0.2s var(--gcc-ease);
}

.gcc-lang__btn[lang="ar"] {
    font-family: Tahoma, 'Segoe UI', sans-serif;
    font-size: 14px;
}

.gcc-lang__btn:hover {
    color: #FFFFFF;
}

.gcc-lang__btn[aria-pressed="true"] {
    background: var(--wp--preset--color--accent);
    color: var(--wp--preset--color--navy);
}

.gcc-lang__btn:focus-visible {
    outline: 2px solid var(--wp--preset--color--accent);
    outline-offset: 2px;
}

@media (max-width: 781px) {
    .gcc-lang {
        margin-right: 8px;
    }
}

.gcc-to-top {
    position: fixed;
    right: clamp(16px, 3vw, 28px);
    bottom: clamp(16px, 3vw, 28px);
    z-index: 90;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    background: var(--wp--preset--color--navy);
    color: #FFFFFF;
    box-shadow: var(--gcc-shadow-lg);
    cursor: pointer;
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s var(--gcc-ease), background-color 0.2s ease, color 0.2s ease;
}

.gcc-to-top.is-visible {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

.gcc-to-top:hover {
    background: var(--wp--preset--color--accent);
    color: var(--wp--preset--color--navy);
}

.gcc-to-top:focus-visible {
    outline: 2px solid var(--wp--preset--color--accent);
    outline-offset: 3px;
}

/* One gutter for the header and every section, so their edges line up at all screen sizes.
   The page content uses 3vw side padding (clamped), so the header uses the same value. */
:root {
    --gcc-gutter: clamp(16px, 3vw, 40px); /* same as WordPress's page padding (theme.json) */
    --gcc-content-max: 1360px;
}

/* Every full-width section uses the same side gutter, so none of them has its own edge.
   The header is excluded here: it has its own rule below. */
.wp-block-group.alignfull.has-global-padding:not(.gcc-site-header) {
    padding-left: var(--gcc-gutter) !important;
    padding-right: var(--gcc-gutter) !important;
}

/* The header box spans the full width; its content sits inside the shared gutter.
   The page sections already use WordPress's own side padding (3vw, clamped), which matches
   --gcc-gutter, so the page itself is not changed here. */
.gcc-site-header {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.gcc-site-header > .wp-block-group.alignwide {
    box-sizing: border-box !important;
    width: 100% !important;
    /* Content box is capped at the same width as the sections, so both edges match at any width */
    max-width: calc(var(--gcc-content-max) + 2 * var(--gcc-gutter)) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: var(--gcc-gutter) !important;
    padding-right: var(--gcc-gutter) !important;
}

/* Google Translate's own banner would push the page down: hide it */
.goog-te-banner-frame,
#goog-gt-tt,
.goog-te-balloon-frame,
.skiptranslate > iframe {
    display: none !important;
}

body {
    top: 0 !important;
}

@media (prefers-reduced-motion: reduce) {
    .gcc-to-top {
        transition: none;
    }
}


/* =====================================================================
   v1.2.4: right-to-left layout for Arabic. Applies only when the page
   has dir="rtl" (set by the language selector). English is unchanged.
   ===================================================================== */

html[dir="rtl"] body {
    text-align: start;
}

/* Icons that point forward flip direction */
html[dir="rtl"] .gcc-min-submit-btn svg,
html[dir="rtl"] .gcc-contact-submit__arrow,
html[dir="rtl"] .wp-block-button__link svg {
    transform: scaleX(-1);
}

/* Header: the language switch sits on the other side of the phone button */
html[dir="rtl"] .gcc-lang {
    margin-right: 0;
    margin-left: 14px;
}

@media (max-width: 781px) {
    html[dir="rtl"] .gcc-lang {
        margin-left: 8px;
    }
}

html[dir="rtl"] .gcc-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
    justify-content: flex-end;
    text-align: right;
}

html[dir="rtl"] .gcc-site-header .wp-block-navigation a.wp-block-navigation-item__content::after {
    transform-origin: right;
}

/* FAQ: the plus or minus icon moves to the left, the text gets the right padding */
html[dir="rtl"] .wp-block-details.is-style-faq summary {
    padding: 20px 56px 20px 20px;
}

html[dir="rtl"] .wp-block-details.is-style-faq summary {
    padding-right: 20px;
    padding-left: 56px;
}

html[dir="rtl"] .wp-block-details.is-style-faq summary::after {
    right: auto;
    left: 22px;
}

/* Footer lists and the copyright line */
html[dir="rtl"] .gcc-site-footer .wp-block-list {
    padding-right: 0;
}

html[dir="rtl"] .gcc-site-footer .wp-block-list a:hover {
    transform: translateX(-3px);
}

/* Back-to-top button moves to the bottom left */
html[dir="rtl"] .gcc-to-top {
    right: auto;
    left: clamp(16px, 3vw, 28px);
}

/* Search bar and selects: dropdown arrow on the left, text padding mirrored */
html[dir="rtl"] .gcc-min-search-shell .gcc-select-chevron,
html[dir="rtl"] .gcc-contact-form .gcc-select-chevron {
    right: auto;
    left: 14px;
}

html[dir="rtl"] .gcc-min-search-shell .gcc-min-select,
html[dir="rtl"] .gcc-min-search-shell select {
    padding-right: 14px;
    padding-left: 40px;
}

html[dir="rtl"] .gcc-contact-field select {
    padding-right: 14px;
    padding-left: 40px;
    background-position: left 14px center;
}

html[dir="rtl"] .gcc-min-route-note,
html[dir="rtl"] .gcc-contact-privacy,
html[dir="rtl"] .gcc-contact-help {
    text-align: start;
}

/* Flex rows already reverse with direction, so no extra rules are needed for them */


/* v1.2.7: Google Maps placeholder */
.gcc-map-facade {
    display: grid;
    place-items: center;
    height: 180px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    background:
        radial-gradient(circle at 30% 20%, rgba(197, 160, 89, 0.18), transparent 55%),
        var(--wp--preset--color--ink);
    box-shadow: 0 18px 40px -28px rgba(0, 0, 0, 0.6);
    text-align: center;
}

.gcc-map-facade__inner {
    display: grid;
    justify-items: center;
    gap: 10px;
}

.gcc-map-facade__text {
    margin: 0;
    max-width: 30ch;
    font-size: 13px;
    line-height: 1.5;
    color: var(--wp--preset--color--pale);
}

.gcc-map-facade__btn {
    min-height: 42px;
    padding: 0 20px;
    border: 0;
    border-radius: 999px;
    background: var(--wp--preset--color--accent);
    color: var(--wp--preset--color--navy);
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s var(--gcc-ease), background-color 0.2s ease;
}

.gcc-map-facade__btn:hover {
    transform: translateY(-1px);
    background: #FFFFFF;
}

.gcc-map-facade__btn:focus-visible,
.gcc-map-facade__link:focus-visible {
    outline: 2px solid var(--wp--preset--color--accent);
    outline-offset: 3px;
}

.gcc-map-facade__link {
    font-size: 12.5px;
    color: var(--wp--preset--color--slate-light);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.gcc-map-facade__link:hover {
    color: var(--wp--preset--color--gold);
}
