/*
    Theme Name: Eagle Island Resort
    Template: Divi
    Version: 1.0.0
*/

:root {
    --primary:      var(--green);
    --green:        #1a6e70;
    --brightgreen:  #e3f3f3;
    --lightgreen:   #6fa9ab;
    --darkgreen:    #134f51;
    --tan:          #71624b;
    --lighttan:     #b7ab99;
    --darktan:      #4f4536;
    --white:        #f9f9f9;
    --light:        #dcdee2;
    --mid:          #9a9ea5;
    --dark:         #3d3d4c;
    --verydark:     #312924;
    --black:        #001921;
}

/* Remove Divi boxed layout on mobile */
@media (max-width: 980px) {

    .et_boxed_layout #page-container {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
    }

    body.et_boxed_layout {
        background-image: none !important;
    }

    #page-container {
        box-shadow: none !important;
    }

}

/* Selection Color */
::selection {
    color: var(--white);
    background: var(--green);
}

::-moz-selection {
    color: var(--white);
    background: var(--green);
}

.is-green-section ::selection {
    color: var(--white);
    background: var(--verydark);
}

.is-green-section ::-moz-selection {
    color: var(--white);
    background: var(--verydark);
}

/* Primary Menu */
#mega-menu-primary-menu.mega-menu {
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.15) !important;
}

/* Mobile Menu */
.eir-mobile-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--verydark);
}

.mega-menu-toggle {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

/* Secondary Menu */
.secondary-menu-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    color: var(--white);
    font-size: 1rem;
}

.secondary-menu-bar a {
    color: var(--white);
    text-decoration: none;
}

.secondary-menu-bar a:hover {
    text-decoration: underline;
}

.secondary-menu-bar__left {
    white-space: nowrap;
    opacity: 0.7;
    font-size: 0.85em;
}

.secondary-menu-bar__center {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-grow: 1;
}

.secondary-menu-bar__right {
    display: flex;
    align-items: center;
    gap: 0.5em;
    white-space: nowrap;
    font-size: 0.85em;
    opacity: 0.7;
}

.secondary-menu-bar__btn {
    background: var(--verydark);
    color: var(--white);
    text-decoration: none;
    padding: 0.5em 1.2em;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    text-align: center;
    white-space: nowrap;
    transition: background 0.2s ease;
    opacity: 1;
}

.secondary-menu-bar__btn:hover {
    background: var(--dark);
    text-decoration: none !important;
}

@media screen and (max-width: 980px) {
    .secondary-menu-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
        padding: 0.75em 1em;
        text-align: center;
    }

    .secondary-menu-bar__left {
        display: none;
    }

    .secondary-menu-bar__center {
        display: flex;
        flex-direction: row;
        justify-content: center;
    }

    .secondary-menu-bar__btn {
        flex: 1;
        max-width: none;
    }

    .secondary-menu-bar__right {
        justify-content: center;
        flex-wrap: wrap;
        font-size: 0.8em;
    }
}

/* Mobile Menu */
.mobile-menu__topbuttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.2rem;
    padding: 0.2rem;
    flex-grow: 1;
}

.mobile-menu-bar__btn {
    background: var(--verydark);
    color: var(--white);
    text-decoration: none;
    padding: 0.5em 1em;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    flex-grow: 1;
    text-align: center;
}

/* Footer */
.footer-social {
    display: flex;
    justify-content: center;
    gap: 0.75em;
}

.footer-social a {
    color: var(--dark);
    text-decoration: none;
    font-size: 24px;
}

.footer-social a:hover {
    color: var(--green);
}

/* Alternate Image/Text Order — Desktop Only */
@media (min-width: 981px) {

    /* Default safety — ensure flex */
    .et_pb_row.image-first,
    .et_pb_row.text-first {
        display: flex;
    }

    /* Image Left / Text Right */
    .et_pb_row.image-first {
        flex-direction: row;
    }

    /* Text Left / Image Right */
    .et_pb_row.text-first {
        flex-direction: row-reverse;
    }

}

/* Quick Links Section */
.quick-links__flex {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75em;
    padding-top: 1em;
}

.quick-links__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75em;
    padding-top: 1em;
}

.quick-btn {
    display: block;
    text-align: center;
    padding: 0.5em;
    border: 2px solid var(--green);
    color: var(--green);
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    padding: 0.75em 1em;
    min-width: 200px;
    flex-grow: 1;
}

.quick-btn:hover {
    background: var(--green);
    color: var(--white);
}

.quick-btn-light {
    border-color: var(--white);
    color: var(--white);
}

.quick-btn-light:hover {
    background: var(--white);
    color: var(--darkgreen);
}

/* Home Page Flag Grid*/
.flag-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
}

.flag-grid img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    .flag-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ===============================
    Simple Button
================================= */

.eir-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0.45rem 0.9rem;
    border-radius: 6px;

    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.02em;

    text-decoration: none;

    background: var(--primary);
    color: var(--white);
    border: 1px solid var(--primary);

    transition:
        background-color 160ms ease,
        color 160ms ease,
        border-color 160ms ease,
        transform 120ms ease;
}

.eir-btn:hover {
    background: var(--darkgreen);
    border-color: var(--darkgreen);
    transform: translateY(-1px);
}

.eir-btn:active {
    transform: translateY(0);
}

/* ===============================
    Outline Variant
================================= */

.eir-btn--outline {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.eir-btn--outline:hover {
    background: var(--brightgreen);
    color: var(--darkgreen);
    border-color: var(--darkgreen);
}

/* ===============================
    Ghost Variant (Very Minimal)
================================= */

.eir-btn--ghost {
    background: transparent;
    border: 1px solid transparent;
    color: var(--primary);
}

.eir-btn--ghost:hover {
    background: var(--brightgreen);
}

/* Frequently Asked Questions - Details Toggles */
.faq-section hr {
    border: none;
    border-top: 1px solid #d0cdc8;
    margin-bottom: 1.75rem;
}

.faq-section .faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.faq-section .faq-grid details {
    border-bottom: 1px solid #d0cdc8;
}

.faq-section .faq-grid details:nth-child(odd) {
    border-right: 1px solid #d0cdc8;
    padding-right: 2rem;
}

.faq-section .faq-grid details:nth-child(even) {
    padding-left: 2rem;
}

.faq-section .faq-grid details:nth-last-child(-n+2) {
    border-bottom: none;
}

.faq-section .faq-grid details summary {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem 0;
    cursor: pointer;
    list-style: none;
    user-select: none;
    font-weight: 400;
    color: var(--dark);
    transition: color 0.2s ease;
}

.faq-section .faq-grid details summary::-webkit-details-marker {
    display: none;
}

.faq-section .faq-grid details summary:hover {
    color: var(--green);
}

.faq-section .faq-grid details summary .faq-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    background: var(--dark);
    color: var(--white);
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    transition: background 0.2s ease;
}

.faq-section .faq-body li {
    padding-top: 0.5em;
}

.faq-section .faq-grid details summary:hover .faq-icon {
    background: var(--green);
}

.faq-section .faq-grid details summary .faq-icon .fa-plus {
    display: block;
}

.faq-section .faq-grid details summary .faq-icon .fa-minus {
    display: none;
}

.faq-section .faq-grid details[open] summary .faq-icon .fa-plus {
    display: none;
}

.faq-section .faq-grid details[open] summary .faq-icon .fa-minus {
    display: block;
}

.faq-section .faq-grid details[open] summary {
    color: var(--green);
}

.faq-section .faq-grid details .faq-body {
    padding: 0 0 1.25rem 2.7rem;
}

@media (max-width: 600px) {
    .faq-section .faq-grid {
        grid-template-columns: 1fr;
    }

    .faq-section .faq-grid details:nth-child(odd) {
        border-right: none;
        padding-right: 0;
    }

    .faq-section .faq-grid details:nth-child(even) {
        padding-left: 0;
    }

    .faq-section .faq-grid details:nth-last-child(-n+2) {
        border-bottom: 1px solid #d0cdc8;
    }

    .faq-section .faq-grid details:last-child {
        border-bottom: none;
    }
}

/* Full Height Image Column */
.full-height-image-column {
    display: flex;
    flex-direction: column;
}

.full-height-image-column .et_pb_image {
    height: 100%;
}

.full-height-image-column .et_pb_image_wrap {
    display: block;
    height: 100%;
}

.full-height-image-column .et_pb_image_wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ===============================
    Contact Block
================================= */

.contact-block {
    max-width: 720px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
}

.contact-block__title {
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: 600;
}

/* Compact Contact List */
.eir-contact {
    display: grid;
    gap: 0.5rem;
}

.eir-contact__item {
    display: flex;
    align-items: center;
    gap: 0.75rem;

    padding: 0.75rem 0.9rem;
    border-radius: 10px;

    background: rgba(0, 0, 0, 0.04);
    text-decoration: none;

    transition: transform 160ms ease, background-color 160ms ease;
}

.eir-contact__item:hover {
    background: rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
}

/* Icon */
.eir-contact__icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    background: var(--eir-accent, #0e5c63);
    color: #fff;

    font-size: 0.95rem;
    flex: 0 0 auto;
}

/* Text */
.eir-contact__text {
    display: grid;
    gap: 0.15rem;
    min-width: 0;
    /* allows truncation */
}

.eir-contact__label {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.75;
    line-height: 1.1;
}

.eir-contact__value {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;

    color: inherit;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Optional: give links a subtle tint */
.eir-contact__item {
    color: #1a1a1a;
}

.eir-contact__item:hover .eir-contact__value {
    color: var(--eir-accent, #0e5c63);
}

/* Mobile tweak: allow email to wrap if you prefer */
@media (max-width: 480px) {
    .eir-contact__value {
        white-space: normal;
    }
}

/* ===============================
   Tables (Global, token-based)
================================= */

.eir-table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    background: var(--white);
    border: 1px solid var(--light);
    border-radius: 10px;
    overflow: hidden;
}

.eir-table thead th {
    text-align: left;
    padding: 0.75rem 0.9rem;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.02em;

    color: var(--white);
    background: var(--darkgreen);
    border-bottom: 1px solid var(--darkgreen);
}

.eir-table tbody td {
    padding: 0.75rem 0.9rem;
    vertical-align: top;
    border-top: 1px solid var(--light);
    color: var(--dark);
    font-size: 0.95rem;
    line-height: 1.35;
}

/* Kill the random WordPress <p> spacing inside cells */
.eir-table td p {
    margin: 0;
    padding: 0;
}

/* Make stacked lists inside a single cell look tidy */
.eir-table td p+p {
    margin-top: 0.35rem;
}

.eir-table tbody tr:nth-child(even) {
    background: rgba(0, 0, 0, 0.03);
}

/* Price columns can be tightened if you like */
.eir-table td:nth-child(2),
.eir-table td:nth-child(3),
.eir-table td:nth-child(4) {
    white-space: nowrap;
}

/* Optional: subtle hover */
.eir-table tbody tr:hover {
    background: rgba(26, 110, 112, 0.06);
    /* based on --green */
}

/* ===============================
    Mobile: stack into cards
    Requires data-label on td
================================= */

@media (max-width: 760px) {
    .eir-table {
        border-radius: 10px;
    }

    .eir-table thead {
        display: none;
    }

    .eir-table,
    .eir-table tbody,
    .eir-table tr,
    .eir-table td {
        display: block;
        width: 100%;
    }

    .eir-table tbody tr {
        background: var(--white);
        border-top: 1px solid var(--light);
        padding: 0.4rem 0;
    }

    .eir-table tbody td {
        display: grid;
        grid-template-columns: 8.5rem 1fr;
        gap: 0.65rem;

        padding: 0.55rem 0.9rem;
        border-top: none;
        white-space: normal;
        /* undo nowrap */
    }

    .eir-table tbody td::before {
        content: attr(data-label);
        font-weight: 700;
        font-size: 0.78rem;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: var(--tan);
        line-height: 1.2;
    }

    /* First cell (description) gets more breathing room */
    .eir-table tbody td:first-child {
        grid-template-columns: 1fr;
    }

    .eir-table tbody td:first-child::before {
        content: attr(data-label);
        margin-bottom: 0.25rem;
        display: block;
    }
}

/* ===============================
    Social Block
================================= */

.eir-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.2em;
    font-size: 28px;
}

.eir-social__title {
    margin-bottom: 0.75rem;
}

/* Individual Icons */

.eir-social a {
    width: 48px;
    aspect-ratio: 1 / 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--light);
    color: var(--primary);
    text-decoration: none;
    transition:
        background-color 160ms ease,
        color 160ms ease,
        transform 120ms ease;
}

.eir-social a:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

/* Optional subtle active state */
.eir-social a:active {
    transform: translateY(0);
}