@charset "utf-8";
/*
 * Island Realty Group design for the Atlantis SALES page bodies (grid,
 * cards, pager, filters, list-property form). The shared header and footer
 * are styled sitewide by irg-header-footer.css.
 *
 * Reference: public/islandrealtygroup/*.php + styles.css (identical to
 * square1server.com/islandrealtygroup). Loaded only by views that include
 * partials/irg-theme, and every rule is scoped to body.irg-theme, so no
 * other Atlantis page is affected.
 *
 * Deliberately NOT inside a cascade @layer: app.css is Tailwind v4, whose
 * utilities live in @layer utilities, and unlayered rules always win over
 * layered ones — so these overrides beat the shared partials' utility
 * classes without !important or markup changes to those partials.
 *
 * Breakpoints follow Tailwind's (lg = 1024px), since the shared nav
 * switches between its mobile bar and desktop bar at lg.
 */

body.irg-theme {
    --irg-text: #333333;
    --irg-link: #2e6da4;
    --irg-link-hover: #0a1932;
    --irg-nav: #0a1932;
    --irg-navy: #002966;
    --irg-contact-bar: #d9dfe8;
    --irg-footer-link: #e6ebf2;
    --irg-muted: #666666;
    --irg-faint: #999999;
    /* WCAG 1.4.3: #3c9042 was 3.99:1 on white; #2e7d32 = 5.13:1. */
    --irg-green: #2e7d32;
    /* WCAG 1.4.3: #c08c52 was 2.95:1 on white for the "Under Contract"
       status; #946a36 is the same gold hue at 4.8:1. */
    --irg-gold: #946a36;
    --irg-blue: #004b96;

    font-family: "IRG Sales Montserrat", "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif
;
    color: var(--irg-text);
    background: #ffffff;
}

/* ---------------------------------------------------------------- *
 * Page body
 * ---------------------------------------------------------------- */
.irg-theme main {
    font-size: 17px;
    color: var(--irg-text);
}

.irg-theme main a {
    color: var(--irg-link);
}

.irg-theme main a:hover {
    color: var(--irg-link-hover);
}

/* IRG content table: 95% wide, 30px spacer above, 50px below. */
.irg-page {
    width: 95%;
    margin: 0 auto;
    padding: 30px 0 50px;
}

.irg-page--narrow {
    width: 90%;
    max-width: 1240px;
}

@media (max-width: 639px) {
    .irg-page,
    .irg-page--narrow {
        width: auto;
        padding: 20px 16px 40px;
    }
}

/* CMS intro (tbl_pages.page_information): centered h1 + subtitle. */
.irg-intro {
    margin: 0 auto 18px;
    text-align: center;
}

.irg-intro > div {
    padding: 0;
}

.irg-theme .irg-intro h1 {
    margin: 0.35em 0;
    font-size: 42px;
    font-weight: 100;
    line-height: 1.25;
}

.irg-theme .irg-intro h2 {
    font-size: 32px;
    font-weight: 300;
}

.irg-theme .irg-intro h3 {
    margin: 0.5em 0;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.4;
}

.irg-theme .irg-intro h4 {
    margin: 0.5em 0;
    font-size: 24px;
    font-weight: 300;
    line-height: 1.6;
}

@media (max-width: 639px) {
    .irg-theme .irg-intro h1 {
        font-size: 32px;
    }

    .irg-theme .irg-intro h3,
    .irg-theme .irg-intro h4 {
        font-size: 20px;
    }
}

/* ---------------------------------------------------------------- *
 * Results status + pager (components/paginated-results,
 * partials/pagination — shared with rentals, so styled here only).
 * ---------------------------------------------------------------- */
.irg-theme #results-region [data-results-status],
.irg-theme #results-region > div > p {
    color: var(--irg-text);
}

.irg-theme nav[aria-label="Pagination"] {
    font-size: 17px;
    color: var(--irg-faint);
}

.irg-theme nav[aria-label="Pagination"] a {
    color: var(--irg-link);
}

.irg-theme nav[aria-label="Pagination"] a:hover {
    color: var(--irg-link-hover);
    text-decoration: none;
}

.irg-theme nav[aria-label="Pagination"] strong {
    color: var(--irg-text);
}

/* ---------------------------------------------------------------- *
 * Search filters (components/listing-filters) — mockup note: use
 * #002966 for the SEARCH button.
 * ---------------------------------------------------------------- */
.irg-theme form[role="search"] label {
    color: var(--irg-muted);
}

.irg-theme form[role="search"] select,
.irg-theme form[role="search"] input[type="text"] {
    font-family: inherit;
    font-size: 15px;
}

.irg-theme form[role="search"] button[type="submit"] {
    background-color: var(--irg-navy);
    font-size: 13px;
    letter-spacing: 0.05em;
}

.irg-theme form[role="search"] button[type="submit"]:hover {
    background-color: var(--irg-link-hover);
}

/* ---------------------------------------------------------------- *
 * Property grid + cards (components/listing-card)
 * IRG: 4 across with ~2% gutters and 30px between rows.
 * ---------------------------------------------------------------- */
.irg-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 30px 2%;
    margin: 18px 0 0; /* IRG's 18px spacer under the status/pager row */
    padding: 0;
    list-style: none;
}

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

@media (min-width: 900px) {
    .irg-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1200px) {
    .irg-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.irg-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 28px; /* .smallspacing */
}

.irg-card-photo {
    display: block;
    height: clamp(220px, 19.5vw, 314px);
    overflow: hidden;
    background: #eef1f5;
}

.irg-card-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.irg-card-photo:hover img {
    transform: scale(1.04);
}

.irg-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 10px 0;
    text-align: left;
}

.irg-theme .irg-card-address {
    margin: 0;
    font-size: 17px;
    font-weight: 400;
    line-height: 28px;
    overflow-wrap: anywhere;
}

.irg-card-meta {
    font-size: 15px;
}

.irg-sep {
    padding: 0 0.3em;
    color: var(--irg-faint);
}

.irg-card-foot {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
}

.irg-card-price {
    font-size: 20px;
    font-weight: 700;
}

.irg-card-status {
    font-size: 15px;
    text-align: right;
    color: var(--irg-muted);
}

.irg-card-status--active {
    color: var(--irg-green);
}

.irg-card-status--contract {
    color: var(--irg-gold);
}

.irg-card-status--notice {
    color: var(--irg-blue);
}

/* ---------------------------------------------------------------- *
 * List Your Property form (pages/list-property)
 * IRG: two columns of plain inputs (class "gray6 padding"), full-width
 * comments box, then a 230px navy SUBMIT block in .fontxtralarge.
 * ---------------------------------------------------------------- */
.irg-form {
    width: 85%;
    margin: 10px auto 0;
    text-align: left;
}

.irg-form-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 15px 7%;
}

@media (min-width: 640px) {
    .irg-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 639px) {
    .irg-form {
        width: 100%;
    }
}

/* The honeypot input matches too, but stays hidden by .honeypot-field. */
.irg-theme .irg-form input:not([type="hidden"]),
.irg-theme .irg-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #a9a9a9;
    border-radius: 0;
    font-family: inherit;
    font-size: 16px;
    line-height: 1.5;
    color: var(--irg-muted);
    background: #ffffff;
}

.irg-theme .irg-form input[aria-invalid="true"],
.irg-theme .irg-form textarea[aria-invalid="true"] {
    border-color: #ec2228;
}

.irg-theme .irg-form textarea {
    min-height: 200px;
}

.irg-submit {
    display: block;
    width: 230px;
    margin-top: 25px;
    padding: 25px;
    border: 0;
    border-radius: 0;
    font-family: inherit;
    font-size: 36px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--irg-footer-link);
    background-color: var(--irg-navy);
    cursor: pointer;
}

.irg-submit:hover {
    color: #ffffff;
    background-color: var(--irg-link-hover);
}

.irg-submit:focus-visible {
    outline: 2px solid var(--irg-link);
    outline-offset: 2px;
}

@media (max-width: 639px) {
    .irg-submit {
        width: 100%;
        padding: 18px;
        font-size: 28px;
    }
}

/* ---------------------------------------------------------------- *
 * Rental cards (components/rental-card) on the IRG Vacation Rentals
 * page — matches islandrealtygroup/vacationrentals.php: borderless,
 * 314px photo, blue address link, "Bd | Ba | Sleeps" in .size15, then
 * the bold rate with its date range. Restyled here (scoped to
 * .irg-rental-grid) rather than in the component, which the All
 * Wildwood Rentals page shares unchanged.
 *   li > a (whole card) > div:first-child photo, div:last-child body
 * !important on line-height only: layouts/app forces
 * `p { line-height: 40px !important }`.
 * ---------------------------------------------------------------- */
.irg-theme .irg-rental-grid > li > a {
    border: 0;
    background: none;
    box-shadow: none;
    color: var(--irg-text);
    text-decoration: none;
}

.irg-theme .irg-rental-grid > li > a:hover {
    box-shadow: none;
}

.irg-theme .irg-rental-grid > li > a > div:first-child {
    height: clamp(220px, 19.5vw, 314px);
    min-height: 0;
    max-height: none;
    background: #eef1f5;
}

.irg-theme .irg-rental-grid > li > a > div:last-child {
    padding: 10px 0;
    text-align: left;
}

.irg-theme .irg-rental-grid h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 400;
    line-height: 28px;
    color: var(--irg-link);
    overflow-wrap: anywhere;
}

.irg-theme .irg-rental-grid > li > a:hover h3 {
    color: var(--irg-link-hover);
}

.irg-theme .irg-rental-grid p {
    padding: 0;
    font-size: 15px;
    line-height: 28px !important;
    color: var(--irg-text);
}

/* Rate row: price in .superbold, dates in .size15. */
.irg-theme .irg-rental-grid p:last-child:not(:first-of-type) {
    font-size: 17px;
    font-weight: 700;
    color: var(--irg-text);
}

.irg-theme .irg-rental-grid p span {
    font-size: 15px;
    color: var(--irg-text);
}

/* Reference card text (x-rental-card variant="reference", /vacation-rentals):
   "City | Type" and "Bd | Ba | Half | Sleeps" in .size15 (15px / 28px),
   then the price in .superbold (17px) with its dates in .size15. */
.irg-theme .irg-rental-grid .irg-card-meta {
    font-size: 15px;
    line-height: 28px;
    color: var(--irg-text);
}

.irg-theme .irg-rental-grid .irg-rental-price {
    line-height: 28px;
}

.irg-theme .irg-rental-grid .irg-rental-price .irg-card-price {
    font-size: 17px;
    font-weight: 700;
    color: var(--irg-text);
}

.irg-theme .irg-rental-grid .irg-rental-price .irg-card-meta {
    margin-left: 4px;
}

@media (max-width: 639px) {
    .irg-theme .irg-rental-grid .irg-card-meta {
        font-size: 14px;
        line-height: 24px;
    }
}

/* ---------------------------------------------------------------- *
 * Recently Listed Rentals / Special Weekends (pages/rentals/
 * recently-listed, special-weekends, special-weekend) — client reference
 * islandrealtygroup/recentlylistedrentals.php, specialweekends.php.
 *   - h4 link row under the h1 (gray9 separators), then pagebreak2.png
 *   - Special Weekends index: 3 photo tiles per row (600x314 photos),
 *     uppercase link title, .size15 dates, centered
 * ---------------------------------------------------------------- */
.irg-theme .irg-intro h4 a[aria-current="page"] {
    color: var(--irg-text);
}

.irg-pagebreak {
    margin: 10px 0 0;
}

.irg-pagebreak img {
    display: inline-block;
    width: 340px;
    max-width: 100%;
    height: auto;
}

.irg-weekend-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px 2%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.irg-weekend {
    text-align: center;
}

.irg-weekend-photo {
    display: block;
    overflow: hidden;
    aspect-ratio: 600 / 314;
    background: #eef1f5;
}

.irg-weekend-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease-out;
}

.irg-weekend-photo:hover img {
    transform: scale(1.04);
}

.irg-theme .irg-weekend-title {
    margin: 10px 0 0;
    font-size: 17px;
    font-weight: 400;
    line-height: 28px;
}

.irg-weekend-dates {
    font-size: 15px;
    line-height: 28px;
    color: var(--irg-text);
}

@media (max-width: 1023px) {
    .irg-weekend-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 30px 4%;
    }
}

@media (max-width: 639px) {
    .irg-weekend-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .irg-theme .irg-intro h4 {
        line-height: 1.6;
    }
}
