/* ==========================================================================
   WeGoCeylon — Stylesheet
   ========================================================================== */
:root {
    --teal: #0e7c86;
    --teal-dark: #0a5c64;
    --teal-light: #e6f4f5;
    --sunset: #f2704a;
    --sunset-dark: #d9552f;
    --sand: #faf6ef;
    --ink: #1b2b2d;
    --muted: #5c6b6d;
    --line: #e7e3da;
    --white: #ffffff;
    --shadow: 0 6px 24px rgba(14, 40, 44, 0.08);
    --shadow-lg: 0 16px 48px rgba(14, 40, 44, 0.14);
    --radius: 14px;
    --radius-sm: 8px;
    --sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --serif: 'Lora', Georgia, serif;
    --wrap: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--sans);
    color: var(--ink);
    background: var(--sand);
    line-height: 1.65;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration: none; transition: color .2s; }
a:hover { color: var(--sunset); }

.container { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

.skip-link {
    position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff;
    padding: 10px 16px; z-index: 1000;
}
.skip-link:focus { left: 10px; top: 10px; }

/* ---------- Header ---------- */
.site-header {
    background: rgba(255,255,255,0.92);
    backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--line);
    position: sticky; top: 0; z-index: 100;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand-mark {
    font-weight: 800; font-size: 1.4rem; letter-spacing: -.02em; color: var(--teal-dark);
}
.brand-mark strong { color: var(--sunset); }
.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a {
    color: var(--ink); font-weight: 500; padding: 9px 14px; border-radius: 8px; font-size: .96rem;
}
.main-nav a:hover, .main-nav a.active { background: var(--teal-light); color: var(--teal-dark); }
.main-nav a.btn-nav {
    background: var(--sunset); color: #fff; margin-left: 8px;
}
.main-nav a.btn-nav:hover { background: var(--sunset-dark); color: #fff; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; width: 40px; height: 40px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px auto; transition: .3s; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-block; background: var(--teal); color: #fff; padding: 13px 26px;
    border-radius: 999px; font-weight: 600; border: 0; cursor: pointer; font-size: 1rem;
    transition: transform .15s, box-shadow .2s, background .2s; font-family: var(--sans);
}
.btn:hover { background: var(--teal-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-orange { background: var(--sunset); }
.btn-orange:hover { background: var(--sunset-dark); }
.btn-outline { background: transparent; border: 2px solid var(--teal); color: var(--teal); }
.btn-outline:hover { background: var(--teal); color: #fff; }
.btn-block { width: 100%; text-align: center; }

/* ---------- Hero ---------- */
.hero {
    position: relative; color: #fff; text-align: center;
    background: linear-gradient(160deg, #0a5c64 0%, #0e7c86 55%, #14a0a8 100%);
    overflow: hidden;
}
.hero::after {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(1200px 400px at 80% -10%, rgba(242,112,74,.35), transparent 60%);
}
.hero-inner { position: relative; z-index: 2; padding: 92px 20px 100px; max-width: 820px; margin: 0 auto; }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }
.hero p { font-size: 1.2rem; opacity: .95; margin: 20px auto 34px; max-width: 620px; }
.hero-search { display: flex; max-width: 560px; margin: 0 auto; background: #fff; border-radius: 999px; padding: 6px; box-shadow: var(--shadow-lg); }
.hero-search input {
    flex: 1; border: 0; padding: 14px 22px; font-size: 1rem; border-radius: 999px; outline: none; font-family: var(--sans);
}
.hero-search button { border: 0; }

/* ---------- Section headers ---------- */
.section { padding: 68px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 34px; gap: 20px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 800; letter-spacing: -.02em; }
.section-head p { color: var(--muted); margin-top: 6px; }
.eyebrow { color: var(--sunset); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; }

/* ---------- Post grid ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.post-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card {
    background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
    display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-media { aspect-ratio: 16/10; overflow: hidden; background: var(--teal-light); position: relative; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-media img { transform: scale(1.05); }
.card-media .placeholder {
    width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%); color: rgba(255,255,255,.6);
    font-weight: 700; font-size: 2rem;
}
.card-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.badge {
    display: inline-block; align-self: flex-start; background: var(--teal-light); color: var(--teal-dark);
    padding: 4px 12px; border-radius: 999px; font-size: .74rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .04em; margin-bottom: 12px;
}
.badge.orange { background: #fdeae3; color: var(--sunset-dark); }
.card-body h3 { font-size: 1.22rem; line-height: 1.3; margin-bottom: 10px; }
.card-body h3 a { color: var(--ink); }
.card-body h3 a:hover { color: var(--teal); }
.card-excerpt { color: var(--muted); font-size: .95rem; flex: 1; }
.card-meta { display: flex; gap: 14px; color: var(--muted); font-size: .84rem; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }

/* ---------- Featured strip ---------- */
.featured { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; }
.featured-main { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 420px; box-shadow: var(--shadow); background: var(--teal-dark); }
.featured-main img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.featured-main .overlay {
    position: absolute; inset: 0; background: linear-gradient(to top, rgba(6,32,35,.92) 0%, rgba(6,32,35,.2) 60%, transparent 100%);
    display: flex; flex-direction: column; justify-content: flex-end; padding: 34px; color: #fff;
}
.featured-main .overlay h3 { font-size: 1.7rem; color: #fff; margin: 10px 0; line-height: 1.2; }
.featured-main .overlay h3 a { color: #fff; }
.featured-side { display: flex; flex-direction: column; gap: 20px; }
.mini-post { display: flex; gap: 16px; background: #fff; border-radius: var(--radius-sm); padding: 12px; box-shadow: var(--shadow); }
.mini-post .thumb { width: 96px; height: 76px; border-radius: 8px; overflow: hidden; flex-shrink: 0; }
.mini-post .thumb img { width: 100%; height: 100%; object-fit: cover; }
.mini-post .thumb .placeholder { width:100%; height:100%; background: linear-gradient(135deg,var(--teal),var(--teal-dark)); }
.mini-post h4 { font-size: 1rem; line-height: 1.3; }
.mini-post h4 a { color: var(--ink); }
.mini-post span { color: var(--muted); font-size: .8rem; }

/* ---------- Ad slot ---------- */
.ad-slot {
    margin: 40px auto; text-align: center; background: #fff; border: 1px dashed var(--line);
    border-radius: var(--radius); padding: 20px; color: var(--muted); font-size: .8rem;
    min-height: 100px; display: flex; align-items: center; justify-content: center;
}
.ad-slot span { display: block; }

/* ---------- Single post ---------- */
.article-hero { background: var(--white); border-bottom: 1px solid var(--line); }
.article-wrap { max-width: 780px; margin: 0 auto; padding: 0 20px; }
.article-header { padding: 48px 0 30px; }
.article-header .badge { margin-bottom: 16px; }
.article-header h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); line-height: 1.15; letter-spacing: -.02em; margin-bottom: 18px; }
.article-meta { display: flex; gap: 20px; color: var(--muted); font-size: .92rem; flex-wrap: wrap; }
.article-featured-img { width: 100%; border-radius: var(--radius); margin: 12px 0 8px; box-shadow: var(--shadow); max-height: 460px; object-fit: cover; }
.article-body { font-family: var(--serif); font-size: 1.15rem; line-height: 1.85; color: #26383a; padding: 30px 0 50px; }
.article-body h2 { font-family: var(--sans); font-size: 1.6rem; margin: 40px 0 14px; letter-spacing: -.01em; }
.article-body h3 { font-family: var(--sans); font-size: 1.3rem; margin: 30px 0 12px; }
.article-body p { margin-bottom: 22px; }
.article-body ul, .article-body ol { margin: 0 0 22px 24px; }
.article-body li { margin-bottom: 8px; }
.article-body img { border-radius: var(--radius); margin: 24px 0; box-shadow: var(--shadow); }
.article-body blockquote {
    border-left: 4px solid var(--sunset); padding: 4px 0 4px 22px; margin: 26px 0;
    font-style: italic; color: var(--muted);
}
.article-body a { text-decoration: underline; }

/* ---------- Page header (listing pages) ---------- */
.page-header {
    background: linear-gradient(160deg, #0a5c64, #0e7c86); color: #fff; text-align: center; padding: 60px 20px;
}
.page-header h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 800; }
.page-header p { opacity: .92; margin-top: 12px; max-width: 620px; margin-inline: auto; }

/* ---------- Filters ---------- */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 34px; }
.filter-bar a {
    padding: 9px 18px; border-radius: 999px; background: #fff; border: 1px solid var(--line);
    color: var(--ink); font-weight: 500; font-size: .92rem;
}
.filter-bar a:hover, .filter-bar a.active { background: var(--teal); color: #fff; border-color: var(--teal); }

/* ---------- Property card ---------- */
.property-card .card-media { aspect-ratio: 16/11; }
.property-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.property-tags span { background: var(--teal-light); color: var(--teal-dark); font-size: .74rem; padding: 3px 10px; border-radius: 6px; }
.property-loc { color: var(--muted); font-size: .9rem; display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }

/* ---------- Forms ---------- */
.form-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 36px; max-width: 720px; margin: 0 auto; }
.form-group { margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
label { display: block; font-weight: 600; margin-bottom: 7px; font-size: .92rem; }
label .req { color: var(--sunset); }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=tel],
input[type=number], select, textarea {
    width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
    font-size: 1rem; font-family: var(--sans); background: #fff; transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus {
    outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-light);
}
textarea { resize: vertical; min-height: 120px; }
.form-hint { color: var(--muted); font-size: .82rem; margin-top: 5px; }

/* ---------- Alerts ---------- */
.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 20px; font-size: .95rem; }
.alert-success { background: #e6f6ec; color: #1a6b39; border: 1px solid #bfe6cd; }
.alert-error { background: #fdecea; color: #a8341f; border: 1px solid #f5c6bd; }
.alert-info { background: var(--teal-light); color: var(--teal-dark); border: 1px solid #c3e4e6; }

/* ---------- Pagination ---------- */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 44px; }
.pagination a, .pagination span {
    padding: 10px 16px; border-radius: 8px; background: #fff; border: 1px solid var(--line); color: var(--ink); font-weight: 500;
}
.pagination a:hover { background: var(--teal); color: #fff; border-color: var(--teal); }
.pagination .current { background: var(--teal); color: #fff; border-color: var(--teal); }

/* ---------- CTA band ---------- */
.cta-band {
    background: linear-gradient(120deg, var(--sunset), var(--sunset-dark)); color: #fff; text-align: center;
    padding: 56px 20px; border-radius: var(--radius); margin: 20px 0;
}
.cta-band h2 { font-size: 1.9rem; margin-bottom: 12px; }
.cta-band p { opacity: .95; margin-bottom: 24px; max-width: 560px; margin-inline: auto; }
.cta-band .btn { background: #fff; color: var(--sunset-dark); }
.cta-band .btn:hover { background: var(--ink); color: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: #0a2426; color: #b9cdcf; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding: 56px 20px 40px; }
.footer-brand { color: #fff; font-size: 1.5rem; margin-bottom: 14px; }
.footer-brand strong { color: var(--sunset); }
.footer-about { font-size: .92rem; line-height: 1.7; max-width: 320px; }
.footer-col h3 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: #b9cdcf; font-size: .92rem; }
.footer-col a:hover { color: var(--sunset); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; font-size: .86rem; text-align: center; }

/* ---------- Detail / property single ---------- */
.detail-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 34px; align-items: start; }
.detail-info { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; position: sticky; top: 92px; }
.detail-info .info-row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.detail-info .info-row:last-child { border-bottom: 0; }
.detail-info .info-row span:first-child { color: var(--muted); }
.detail-info .info-row span:last-child { font-weight: 600; text-align: right; }

/* ---------- Empty state ---------- */
.empty { text-align: center; padding: 70px 20px; color: var(--muted); }
.empty h3 { color: var(--ink); margin-bottom: 8px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .post-grid { grid-template-columns: repeat(2, 1fr); }
    .featured { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
    .detail-grid { grid-template-columns: 1fr; }
    .detail-info { position: static; }
}
@media (max-width: 680px) {
    body { font-size: 16px; }
    .nav-toggle { display: block; }
    .main-nav {
        position: absolute; top: 72px; left: 0; right: 0; background: #fff; flex-direction: column;
        align-items: stretch; padding: 14px; gap: 4px; box-shadow: var(--shadow-lg);
        transform: translateY(-140%); transition: transform .3s; z-index: 90;
    }
    .main-nav.open { transform: translateY(0); }
    .main-nav a.btn-nav { margin-left: 0; text-align: center; }
    .post-grid, .post-grid.cols-2 { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .section { padding: 46px 0; }
}

/* ============ Language switcher ============ */
.lang-switcher { position: relative; margin-left: 8px; }
.lang-current {
    display: inline-flex; align-items: center; gap: 6px;
    background: transparent; border: 1.5px solid var(--line, #e3ded4);
    color: var(--ink, #22303a); font: inherit; font-weight: 600; font-size: .92rem;
    padding: 8px 12px; border-radius: 999px; cursor: pointer; line-height: 1;
    transition: border-color .15s, background .15s;
}
.lang-current:hover { border-color: var(--teal); }
.lang-caret { font-size: .7rem; opacity: .7; }
.lang-menu {
    position: absolute; top: calc(100% + 8px); right: 0; min-width: 168px;
    background: #fff; border: 1px solid var(--line, #e3ded4); border-radius: 12px;
    box-shadow: 0 12px 34px rgba(20,40,50,.14); padding: 6px; margin: 0;
    list-style: none; opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity .15s, transform .15s, visibility .15s; z-index: 60;
}
.lang-switcher.open .lang-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-menu a {
    display: block; padding: 9px 12px; border-radius: 8px; color: var(--ink, #22303a);
    font-size: .92rem; font-weight: 500; text-decoration: none;
}
.lang-menu a:hover { background: var(--sand, #f7f3ec); }
.lang-menu a.active { color: var(--teal); font-weight: 700; }
@media (max-width: 900px) {
    .lang-switcher { margin: 10px 0 0; }
    .lang-menu { position: static; opacity: 1; visibility: visible; transform: none;
        box-shadow: none; border: none; padding: 0; min-width: 0; }
    .lang-current { display: none; }
    .lang-menu { display: flex; flex-wrap: wrap; gap: 4px; }
    .lang-menu a { padding: 8px 14px; border: 1px solid var(--line, #e3ded4); border-radius: 999px; }
}

/* ============ Registration: map picker, amenities ============ */
.container.narrow { max-width: 760px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-section {
    font-family: var(--serif, Georgia, serif); font-size: 1.15rem; margin: 30px 0 14px;
    padding-bottom: 8px; border-bottom: 2px solid var(--line, #e9e3d7); color: var(--ink, #22303a);
}
.form-section:first-of-type { margin-top: 4px; }
.map-pick {
    height: 320px; width: 100%; border-radius: 12px; border: 1px solid var(--line, #e3ded4);
    overflow: hidden; z-index: 0;
}
.amenity-group { margin-bottom: 16px; }
.amenity-group-title {
    font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .05em;
    color: var(--teal, #0e7c86); margin-bottom: 8px;
}
.amenity-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 6px 14px; }
.amenity-check {
    display: flex; align-items: center; gap: 8px; font-size: .93rem; font-weight: 500;
    color: var(--ink, #22303a); cursor: pointer; padding: 5px 0;
}
.amenity-check input { width: auto; accent-color: var(--teal, #0e7c86); }
@media (max-width: 560px) { .amenity-grid { grid-template-columns: 1fr 1fr; } }

/* ============ Property page: gallery, rooms, map ============ */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 8px 0 10px; }
.gallery-grid img { width: 100%; height: 130px; object-fit: cover; border-radius: 10px; cursor: pointer; transition: transform .15s; }
.gallery-grid img:hover { transform: scale(1.03); }
.room-card {
    display: grid; grid-template-columns: 200px 1fr auto; gap: 18px; align-items: stretch;
    border: 1px solid var(--line, #e9e3d7); border-radius: 14px; overflow: hidden;
    margin-bottom: 16px; background: #fff;
}
.room-card .room-photo { width: 200px; height: 100%; min-height: 140px; object-fit: cover; }
.room-card .room-photo.placeholder { background: #eef2f0; display: flex; align-items: center; justify-content: center; color: #9fb0ab; }
.room-body { padding: 16px 4px; }
.room-body h4 { margin: 0 0 6px; font-size: 1.15rem; }
.room-attrs { display: flex; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: .88rem; margin: 8px 0; }
.room-price { padding: 16px 18px; text-align: right; display: flex; flex-direction: column; justify-content: center; background: var(--sand, #f7f3ec); }
.room-price .amount { font-size: 1.35rem; font-weight: 800; color: var(--teal, #0e7c86); }
.room-price .from { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.map-view { height: 300px; width: 100%; border-radius: 12px; overflow: hidden; z-index: 0; border: 1px solid var(--line,#e3ded4); }
.amenity-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.amenity-tags .tag {
    display: inline-flex; align-items: center; gap: 6px;
    background: #f1f6f5; color: #285158; border: 1px solid #dcebe9;
    padding: 6px 12px; border-radius: 999px; font-size: .86rem; font-weight: 500;
}
@media (max-width: 640px) {
    .room-card { grid-template-columns: 1fr; }
    .room-card .room-photo { width: 100%; height: 180px; }
    .room-price { text-align: left; }
}
