:root {
  --navy: #103c68;
  --pink: #ed1762;
  --muted: #59748c;
  --line: #dcebf8;
  --light: #f0f8ff;
}

body {
  background: #fff;
}

header {
  box-shadow: 0 5px 30px rgba(0,102,204,.07);
}

.nav {
  height: 94px;
}

.navlinks a:hover {
  color: #087bde;
}

.navcta {
  background: #eaf6ff;
  border-color: #cbe8ff;
  color: #087bde;
}

.hero {
  background:
    radial-gradient(ellipse at 88% 10%,rgba(255,255,255,.25),transparent 38%),
    linear-gradient(120deg,#087bde 0%,#149cf0 55%,#48c6f4 100%);
}

.hero:before {
  border-color: rgba(255,255,255,.12);
}

.hero:after {
  background: rgba(255,255,255,.10);
}

.hero-inner {
  padding-top: 125px;
  padding-bottom: 140px;
}

.eyebrow {
  color: #fff;
}

.eyebrow:before {
  background: #fff;
}

h1 {
  font-size: clamp(48px,6.4vw,86px);
  max-width: 950px;
  text-shadow: 0 8px 30px rgba(0,70,140,.12);
}

h1 em {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: #ffb4d0;
  text-decoration-thickness: 5px;
  text-underline-offset: 12px;
}

.hero p {
  color: #effaff;
  font-size: 20px;
}

.search {
  border-radius: 20px;
  padding: 13px;
  box-shadow: 0 25px 75px rgba(0,70,140,.24);
}

.search select {
  background: #f7fbff;
  border-color: #e1effa;
  padding: 20px 16px;
}

.search button {
  background: #ed1762;
  box-shadow: 0 6px 18px rgba(237,23,98,.22);
}

.hero-note {
  color: #f3fbff;
}

.section-light {
  background: linear-gradient(180deg,#f0f8ff,#fafcff);
}

.kicker {
  color: #087bde;
}

h2 {
  color: #103c68;
}

.tab.active {
  background: #087bde;
  border-color: #087bde;
}

.card {
  border-radius: 22px;
  box-shadow: 0 12px 38px rgba(0,104,190,.08);
}

.card:hover {
  box-shadow: 0 24px 55px rgba(0,104,190,.17);
}

.photo {
  height: 255px;
}

.pill {
  color: #087bde;
  box-shadow: 0 3px 12px rgba(0,0,0,.08);
}

.card-price {
  color: #087bde;
}

.empty {
  background: linear-gradient(145deg,#fff,#f3faff);
  border-color: #b8def9;
  padding: 85px 25px;
}

.step {
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(0,104,190,.05);
}

.step-number {
  background: #e5f5ff;
  color: #087bde;
}

.cta {
  background: linear-gradient(115deg,#087bde,#15a4ec);
  box-shadow: 0 20px 55px rgba(0,120,220,.15);
}

.cta h2 {
  color: #fff;
}

.cta p {
  color: #effaff;
}

footer {
  background: #0c3760;
}

@media(max-width:640px) {
  .nav { height: 74px; }
  .hero-inner {
    padding-top: 82px;
    padding-bottom: 94px;
  }
  .hero p { font-size: 17px; }
  .search select { padding: 16px; }
  .empty { padding: 55px 20px; }
}

/* Portalista Mediterranean hero upgrade */

.hero {
    min-height: 670px;
    background:
        linear-gradient(
            105deg,
            rgba(3,65,124,.87) 0%,
            rgba(4,112,190,.66) 48%,
            rgba(5,125,195,.27) 100%
        ),
        url("https://images.unsplash.com/photo-1600607687920-4e2a09cf159d?auto=format&fit=crop&w=2200&q=85")
        center center / cover no-repeat;
}

.hero:before,
.hero:after {
    display: none;
}

.hero-inner {
    padding-top: 130px;
    padding-bottom: 135px;
}

.hero h1 {
    max-width: 980px;
    font-weight: 800;
    text-shadow: 0 4px 24px rgba(0,35,70,.25);
}

.hero h1 em {
    color: #80e5ff;
    text-decoration: none;
}

.hero p {
    max-width: 730px;
    font-size: 21px;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0,35,70,.3);
}

.search {
    max-width: 1100px;
    padding: 14px;
    border: 1px solid rgba(255,255,255,.7);
    box-shadow: 0 30px 80px rgba(0,39,85,.30);
}

.search select {
    border-radius: 10px;
    background: #f4faff;
    font-weight: 600;
}

.search button {
    border-radius: 10px;
    font-weight: 800;
    letter-spacing: .2px;
}

.hero-note {
    margin-top: 28px;
    font-weight: 600;
    text-shadow: 0 2px 8px rgba(0,35,70,.4);
}

@media (max-width: 640px) {
    .hero {
        min-height: auto;
        background-position: 60% center;
    }

    .hero-inner {
        padding-top: 78px;
        padding-bottom: 90px;
    }

    .hero h1 {
        font-size: clamp(43px,11vw,62px);
    }

    .hero p {
        font-size: 17px;
    }

    .search {
        padding: 11px;
    }
}

/* Premium Mediterranean villa hero */
.hero {
    background:
        linear-gradient(
            100deg,
            rgba(3,67,125,.78) 0%,
            rgba(3,105,180,.48) 48%,
            rgba(3,105,180,.08) 100%
        ),
        url("https://images.unsplash.com/photo-1613490493576-7fde63acd811?auto=format&fit=crop&w=2200&q=90")
        center 55% / cover no-repeat;
}

.hero h1 em {
    color: #a5edff;
}


/* Ibiza-style Mediterranean villa hero */
.hero {
    background:
        linear-gradient(
            90deg,
            rgba(0,80,155,.64) 0%,
            rgba(0,115,190,.28) 48%,
            rgba(0,115,190,.03) 100%
        ),
        url("https://images.unsplash.com/photo-1600607687939-ce8a6c25118c?auto=format&fit=crop&w=2200&q=90")
        center center / cover no-repeat;
}

.hero h1 {
    text-shadow: 0 3px 18px rgba(0,50,100,.25);
}

.hero h1 em {
    color: #b5f1ff;
}


/* Final Portalista hero - user-selected photograph */
.hero {
    background:
        linear-gradient(
            90deg,
            rgba(0,80,155,.58) 0%,
            rgba(0,100,180,.20) 48%,
            rgba(0,100,180,0) 100%
        ),
        url("/assets/portalista-hero.jpg")
        center center / cover no-repeat;
}


/* Larger, more readable property card details */
.cards .location,
.cards .meta,
.cards .ref,
.cards .property-ref,
.cards .card-location,
.cards .card-meta,
.cards .card-ref {
    font-size: 15px;
    line-height: 1.6;
}

/* Property facts: bedrooms, bathrooms and floor area */
.cards .facts,
.cards .features,
.cards .specs {
    font-size: 15px;
    line-height: 1.6;
}

/* New-build badges */
.cards .badge {
    font-size: 12px;
}

/* Larger property card details */
.cards .location,
.cards .meta,
.cards .ref,
.cards .property-ref,
.cards .card-location,
.cards .card-meta,
.cards .card-ref,
.cards .facts,
.cards .features,
.cards .specs {
    font-size: 18px !important;
    line-height: 1.6 !important;
}

.cards .badge {
    font-size: 14px !important;
}

/* Property reference: larger and bolder */
.card-ref {
    font-size: 17px !important;
    font-weight: 700 !important;
}

/* Town and property type multi-select dropdowns */
.search .multi-select {
    position:relative;
    min-width:0;
    background:#fff;
    border:1px solid #dce6ee;
    border-radius:9px;
    font-size:15px;
    color:#102c42;
}
.search .multi-select summary {
    display:block;
    padding:17px 35px 17px 16px;
    cursor:pointer;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
    position:relative;
    list-style:none;
}
.search .multi-select summary::-webkit-details-marker {
    display:none;
}
.search .multi-select summary:after {
    content:"⌄";
    position:absolute;
    right:15px;
    top:50%;
    transform:translateY(-50%);
    font-size:20px;
}
.search .multi-options {
    position:absolute;
    top:calc(100% + 5px);
    left:0;
    width:max(100%,240px);
    max-width:min(350px,90vw);
    max-height:290px;
    overflow-y:auto;
    background:white;
    border:1px solid #dce6ee;
    border-radius:10px;
    box-shadow:0 12px 30px rgba(0,0,0,.15);
    padding:8px;
    z-index:50;
}
.search .multi-options label {
    display:flex;
    align-items:center;
    gap:10px;
    padding:9px 10px;
    cursor:pointer;
    font-size:15px;
    border-radius:6px;
}
.search .multi-options label:hover {
    background:#eef7ff;
}
.search .multi-options input {
    width:17px;
    height:17px;
    accent-color:#087bde;
    flex-shrink:0;
}

/* Multi-select dropdowns float above page content */
.hero {
    position: relative;
    z-index: 5;
    overflow: visible !important;
}
.hero-inner {
    overflow: visible !important;
}
.search {
    position: relative;
    z-index: 20;
    overflow: visible !important;
}
.search .multi-select {
    position: relative;
    z-index: 21;
}
.search .multi-select[open] {
    z-index: 100;
}
.search .multi-options {
    position: absolute;
    z-index: 101;
    top: calc(100% + 5px);
    left: 0;
    width: 100%;
    min-width: 240px;
    max-height: 300px;
    overflow-y: auto;
}

/* Reset filters link */
.search .search-reset {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    color: #087bde;
    font-size: 14px;
    font-weight: 700;
    text-decoration: underline;
    white-space: nowrap;
}
.search .search-reset:hover {
    color: #102c42;
}

/* Selected towns breadcrumb above property listings */
.selected-towns {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 26px 0 30px;
    font-size: 16px;
    line-height: 1.6;
}
.selected-towns-label {
    font-weight: 700;
    color: #102c42;
}
.selected-town {
    color: #087bde;
    font-weight: 600;
}
.town-separator {
    color: #9aafbf;
    font-size: 20px;
}

/* Property search results sorting */
.results-toolbar {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    flex-wrap:wrap;
    margin:26px 0 30px;
}
.results-toolbar .selected-towns {
    margin:0;
}
.results-sort {
    display:flex;
    align-items:center;
    gap:12px;
    margin-left:auto;
}
.results-sort label {
    font-size:15px;
    font-weight:700;
    white-space:nowrap;
    color:#102c42;
}
.results-sort select {
    padding:12px 35px 12px 14px;
    border:1px solid #dce6ee;
    border-radius:9px;
    background:#fff;
    color:#102c42;
    font-size:15px;
    font-weight:600;
    cursor:pointer;
}
@media(max-width:640px) {
    .results-sort {
        width:100%;
        margin-left:0;
    }
    .results-sort select {
        flex:1;
        min-width:0;
    }
}


/* portalista-unified-search-arrows-v1 */

/* Use the same arrow on both custom dropdowns. */
.hero .search .multi-select summary {
    list-style: none;
    position: relative;
    padding-right: 42px !important;
}

.hero .search .multi-select summary::-webkit-details-marker {
    display: none;
}

.hero .search .multi-select summary::after {
    content: "" !important;
    position: absolute;
    right: 19px;
    top: 50%;
    width: 7px;
    height: 7px;
    border-right: 2px solid #123849;
    border-bottom: 2px solid #123849;
    transform: translateY(-70%) rotate(45deg);
    background: none !important;
    font-size: 0 !important;
    pointer-events: none;
}

/* Match the native category dropdown to the custom arrows. */
.hero .search select[name="category"] {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    padding-right: 42px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%23123849' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 17px center !important;
    background-size: 12px 12px !important;
}
