/* ============================================================
   accommodation.css
   Exeter Accommodation listing page styles
   Mirrors calendar.css patterns and colour scheme
   Version: 1.1 | Date: 19-06-2026
   ============================================================ */

/* ============================================================
   EDITORIAL INTRO
   ============================================================ */
.ac-editorial {
    background: var(--wh);
    border: 1px solid var(--bd);
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    border-left: 4px solid var(--ac);
    margin-bottom: 1.5rem;
}

.ac-editorial-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--pr);
    margin-bottom: 0.75rem;
}

.ac-editorial-body p {
    font-size: 0.9rem;
    color: var(--mu);
    margin-bottom: 0.75rem;
    line-height: 1.65;
}

.ac-editorial-body a { color: var(--pr); }
.ac-editorial-body a:hover { color: var(--ac); }
.ac-editorial-body p:last-of-type { margin-bottom: 0.85rem; }

.ac-editorial-body h2 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--pr);
    margin: 1rem 0 0.5rem;
}

.ac-editorial-body ul {
    padding-left: 1.1rem;
    margin: 0.4rem 0 0.75rem;
}

.ac-editorial-body ul li {
    font-size: 0.88rem;
    color: var(--mu);
    margin-bottom: 0.35rem;
    line-height: 1.6;
}

.ac-editorial-body ul li a {
    color: var(--pr);
    text-decoration: none;
}

.ac-editorial-body ul li a:hover {
    color: var(--ac);
    text-decoration: underline;
}

/* Hidden content - in DOM for SEO, toggled for users */
.ac-editorial-more {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.ac-editorial-more.open {
    max-height: 2000px;
}

.ac-editorial-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
    align-items: center;
}

.ac-editorial-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.15s;
    border: 1.5px solid var(--pr);
    background: var(--wh);
    color: var(--pr);
}

.ac-editorial-toggle:hover { background: var(--pr-l); }
.ac-toggle-icon { font-size: 0.65rem; transition: transform 0.3s ease; }
.ac-editorial-toggle.open .ac-toggle-icon { transform: rotate(180deg); }

.ac-editorial-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 999px;
    text-decoration: none;
    transition: all 0.15s;
    border: 1.5px solid var(--bd);
    background: var(--bg);
    color: var(--pr);
}

.ac-editorial-link:hover {
    border-color: var(--pr);
    background: var(--pr-l);
    color: var(--pr);
}

.ac-editorial-link--accent {
    background: var(--ac);
    border-color: var(--ac);
    color: #fff !important;
}

.ac-editorial-link--accent:hover {
    background: #ca6f1e;
    border-color: #ca6f1e;
    color: #fff !important;
}

@media (max-width: 767px) {
    .ac-editorial { padding: 1rem; }
    .ac-editorial-more.open { max-height: 3000px; }
}

/* ============================================================
   FEATURED STRIP
   ============================================================ */
.ac-feat { margin-bottom: 1.5rem; }

.ac-sect-title {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--mu);
    margin-bottom: 0.85rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--ac);
    display: inline-block;
}

.ac-feat-scroll {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.75rem;
    scrollbar-width: thin;
    scrollbar-color: var(--bd) transparent;
    -webkit-overflow-scrolling: touch;
}

.ac-feat-scroll::-webkit-scrollbar { height: 4px; }
.ac-feat-scroll::-webkit-scrollbar-thumb {
    background: var(--bd);
    border-radius: 2px;
}

.ac-feat-card {
    min-width: 240px;
    max-width: 260px;
    background: var(--wh);
    border: 1px solid var(--bd);
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    border-top: 3px solid var(--ac);
    transition: box-shadow 0.15s;
}

.ac-feat-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.09); }
.ac-feat-card a { text-decoration: none; color: inherit; }

.ac-feat-img {
    width: 100%;
    height: 130px;
    overflow: hidden;
    background: var(--bg);
}

.ac-feat-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.ac-feat-card:hover .ac-feat-img img { transform: scale(1.04); }

.ac-feat-body { padding: 0.9rem 1.1rem; }

.ac-feat-type {
    font-size: 0.75rem;
    color: var(--ac);
    font-weight: 600;
    margin-bottom: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ac-feat-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--tx);
    margin-bottom: 0.25rem;
    line-height: 1.35;
}

.ac-feat-address {
    font-size: 0.78rem;
    color: var(--mu);
}

.ac-feat-badge {
    display: inline-block;
    font-size: 0.68rem;
    padding: 2px 9px;
    border-radius: 999px;
    background: var(--pr-l);
    color: var(--pr);
    font-weight: 500;
    margin-top: 0.4rem;
}
.ac-feat-footer {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-top: 0.4rem;
}

.ac-feat-badge-rating {
    background: var(--ac-l);
    color: var(--ac);
}
/* ============================================================
   TYPE FILTER BAR
   ============================================================ */
.ac-typebar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    padding: 0.65rem 1rem;
    background: var(--wh);
    border: 1px solid var(--bd);
    border-radius: 10px;
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: thin;
    scrollbar-color: var(--bd) transparent;
    -webkit-overflow-scrolling: touch;
}

.ac-typebar::-webkit-scrollbar { height: 4px; }
.ac-typebar::-webkit-scrollbar-thumb {
    background: var(--bd);
    border-radius: 2px;
}

@media (hover: none) {
    .ac-typebar { scrollbar-width: none; }
    .ac-typebar::-webkit-scrollbar { display: none; }
}

.ac-flabel {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--mu);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
    flex-shrink: 0;
}

.ac-tchip {
    padding: 5px 15px;
    border-radius: 999px;
    font-size: 0.83rem;
    font-weight: 500;
    cursor: pointer;
    border: 1.5px solid var(--bd);
    background: var(--wh);
    color: var(--tx);
    transition: all 0.15s;
    white-space: nowrap;
    flex-shrink: 0;
}

.ac-tchip:hover { border-color: var(--pr); color: var(--pr); }

.ac-tchip.active {
    background: #c8f04a !important;
    border-color: #a0c030 !important;
    color: #1a2f00 !important;
    font-weight: 600;
}

.ac-resetbtn {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--mu);
    cursor: pointer;
    text-decoration: underline;
    background: none;
    border: none;
    padding: 5px 6px;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
}

.ac-resetbtn:hover { color: var(--tx); }

/* ============================================================
   FILTER STATUS BAR
   ============================================================ */
.ac-status {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.6rem 1rem;
    margin-bottom: 0.85rem;
    background: #fff8e6;
    border: 1px solid #f0c040;
    border-radius: 10px;
    flex-wrap: wrap;
}

.ac-status.on { display: flex; }

.ac-status-text {
    font-size: 0.82rem;
    color: #7a5200;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.ac-status-text i { color: #e6a817; }

.ac-stag {
    display: inline-block;
    background: #f0c040;
    color: #5a3c00;
    font-weight: 600;
    font-size: 0.78rem;
    padding: 2px 10px;
    border-radius: 999px;
}

.ac-clearbtn {
    font-size: 0.8rem;
    font-weight: 700;
    color: #7a5200;
    background: none;
    border: 1.5px solid #f0c040;
    border-radius: 999px;
    padding: 4px 14px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s;
}

.ac-clearbtn:hover { background: #f0c040; color: #3a2000; }

/* ============================================================
   TYPE SECTION HEADERS
   ============================================================ */
.ac-type-section { margin-bottom: 2rem; }

.ac-type-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.85rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--bd);
}

.ac-type-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--pr);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ac-type-title i { color: var(--ac); }

.ac-type-more {
    font-size: 0.8rem;
    color: var(--pr);
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
    transition: color 0.15s;
}

.ac-type-more:hover { color: var(--ac); }

/* ============================================================
   LISTING CARDS
   ============================================================ */
.ac-card {
    display: flex;
    gap: 0.85rem;
    background: var(--wh);
    border: 1px solid var(--bd);
    border-radius: 8px;
    padding: 0.8rem 0.95rem;
    margin-bottom: 0.55rem;
    align-items: flex-start;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.ac-card:hover {
    border-color: #adb5bd;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.ac-card.ac-p5 { border-left: 3px solid var(--ac); background: #fffdf7; }
.ac-card.ac-p4 { border-left: 3px solid #f5d76e; background: #fffefc; }

.ac-card-img {
    width: 80px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg);
}

.ac-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ac-card-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 6px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #1a3a5c, #2471a3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.3);
    font-size: 1.75rem;
}

/* Card body — flex row: main content left, actions right */
.ac-cbody {
    flex: 1;
    min-width: 0;
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

/* Main content — title, meta, badges stack vertically */
.ac-cmain {
    flex: 1;
    min-width: 0;
}

.ac-ctitle {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--tx);
    margin-bottom: 0.25rem;
    line-height: 1.35;
    text-decoration: none;
    display: block;
}

.ac-clink {text-decoration: none; color: inherit; }

.ac-clink:hover .ac-ctitle {color: var(--pr); }

.ac-cmeta {
    font-size: 0.78rem;
    color: var(--mu);
    margin-bottom: 0.2rem;
    display: block;
    line-height: 1.4;
}

.ac-cmeta i { width: 13px; margin-right: 3px; }

.ac-cbadges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.4rem;
}

.ac-badge {
    font-size: 0.68rem;
    padding: 2px 9px;
    border-radius: 999px;
    font-weight: 500;
    background: var(--pr-l);
    color: var(--pr);
}

/* Actions — pills stacked vertically on right */
.ac-cactions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 0.4rem;
    flex-shrink: 0;
}

.ac-booking-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.74rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--ac);
    color: #fff;
    text-decoration: none;
    transition: background 0.15s;
    white-space: nowrap;
}

.ac-booking-btn:hover { background: #ca6f1e; color: #fff; }

.ac-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.74rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--pr-l);
    color: var(--pr);
    text-decoration: none;
    transition: background 0.15s;
    white-space: nowrap;
}

.ac-more-btn:hover { background: var(--pr); color: #fff; }

/* ============================================================
   DIRECTORY LINK BLOCK
   ============================================================ */
.ac-dir-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 1rem;
    background: var(--bg);
    border: 1px solid var(--bd);
    border-radius: 8px;
    text-decoration: none;
    color: var(--pr);
    font-size: 0.83rem;
    font-weight: 600;
    transition: all 0.15s;
    margin-top: 0.5rem;
}

.ac-dir-link:hover {
    border-color: var(--pr);
    background: var(--pr-l);
    color: var(--pr);
}

.ac-dir-link i { color: var(--ac); }

/* ============================================================
   EMPTY STATE
   ============================================================ */
.ac-empty {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--mu);
    font-size: 0.9rem;
    border: 1px solid var(--bd);
    border-radius: 8px;
    background: var(--bg);
}

.ac-empty i {
    display: block;
    font-size: 2rem;
    margin-bottom: 0.75rem;
    color: var(--pr);
    opacity: 0.3;
}

/* ============================================================
   DISCLAIMER
   ============================================================ */
.ac-disclaimer {
    font-size: 0.78rem;
    color: var(--mu);
    margin-top: 0.85rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--bd);
    font-style: italic;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 767px) {
    .ac-card { padding: 0.7rem 0.8rem; gap: 0.65rem; }
    .ac-card-img,
    .ac-card-placeholder { width: 60px; height: 60px; }
    .ac-cbody { gap: 0.5rem; }
    .ac-cactions { gap: 0.35rem; }
    .ac-booking-btn,
    .ac-more-btn { font-size: 0.7rem; padding: 3px 9px; }
    .ac-feat-card { min-width: 200px; max-width: 220px; }
    .ac-feat-img { height: 110px; }
    .ac-type-header { flex-direction: column; align-items: flex-start; gap: 0.4rem; }
}
