/* Comparateur Portugal — styles communs (repris des pages Espagne du comparateur français) */
/* Police de la charte (Plus Jakarta Sans, licence OFL : /fonts/OFL-plus-jakarta-sans.txt) */
@font-face{font-family:Plus Jakarta Sans;font-style:normal;font-display:swap;font-weight:200 800;src:url(/fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2);unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;}
@font-face{font-family:Plus Jakarta Sans;font-style:normal;font-display:swap;font-weight:200 800;src:url(/fonts/plus-jakarta-sans-latin-wght-normal.woff2);unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
:root {
  --green: #52C878; --green-dark: #2D7D46; --green-light: #E3F6E9;
  --text: #1F1D2B; --sub: #6E6A78; --border: #ECE7DF; --bg: #F6F3EE; --white: #FFFFFF;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; } /* sinon « display: grid » des listes l'emporte sur l'attribut hidden (boutons de carburant) */
body { font-family: Plus Jakarta Sans, Helvetica, Arial, sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; font-size: 15px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 80px 24px 60px; }
@media (max-width: 480px) { .wrap { padding: 76px 16px 48px; } }

.breadcrumb { font-size: 13px; color: var(--sub); margin-bottom: 18px; }
.breadcrumb a { color: var(--sub); text-decoration: none; }
.breadcrumb a:hover { color: var(--green); }

h1 { font-size: clamp(24px, 4vw, 32px); font-weight: 800; letter-spacing: -0.6px; line-height: 1.25; }
.meta-line { font-size: 13px; color: var(--sub); margin: 8px 0 24px; }
.intro { font-size: 15px; color: var(--sub); margin: -10px 0 24px; max-width: 760px; }

.section-title { font-size: 19px; font-weight: 800; letter-spacing: -0.3px; margin: 36px 0 14px; }
.section-sub { font-size: 13.5px; color: var(--sub); margin: -6px 0 12px; }

/* Cartes de prix moyens */
.prix-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 8px; }
@media (max-width: 780px) { .prix-cards { grid-template-columns: repeat(2, 1fr); } }
.prix-card { background: var(--white); border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; }
.prix-card-nom { font-size: 13px; font-weight: 700; color: var(--sub); }
.prix-card-moy { font-size: 24px; font-weight: 800; letter-spacing: -0.5px; }
.prix-card-min { font-size: 12.5px; color: var(--green-dark); font-weight: 700; }
.prix-card-ecart { font-size: 12px; color: var(--sub); }

/* Carte */
.map-box { position: relative; margin-bottom: 8px; }
#map { height: 480px; border-radius: 16px; border: 1px solid var(--border); overflow: hidden; z-index: 1; }
@media (max-width: 640px) { #map { height: 420px; } }
.map-barre { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.map-info { font-size: 12.5px; color: var(--sub); margin-top: 8px; }
.btn-perto { display: inline-flex; align-items: center; gap: 6px; background: var(--text); color: #fff; border: 0; border-radius: 20px; padding: 8px 16px; font-size: 13px; font-weight: 700; cursor: pointer; margin-left: auto; }
.btn-perto:hover { background: var(--green-dark); }
.btn-perto:disabled { opacity: .6; cursor: wait; }
.leaflet-popup-content-wrapper { border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.12); border: 1px solid var(--border); }
.leaflet-popup-content { margin: 10px 14px; font-family: Plus Jakarta Sans, Helvetica, Arial, sans-serif; }
.map-price-bubble { width: 40px; height: 40px; border-radius: 50%; background: var(--green); color: #fff; border: 2.5px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.25); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; cursor: pointer; letter-spacing: -0.3px; }
.mpb-gasoleo { background: #2563EB; }
.mpb-gasolina95 { background: #16A34A; }
.mpb-gasolina98 { background: #9333EA; }
.mpb-gpl { background: #0D9488; }
.marker-moi { width: 18px; height: 18px; border-radius: 50%; background: #2563EB; border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(37,99,235,.25); }

/* Boutons de carburant */
.filtre-carburant { display: flex; flex-wrap: wrap; gap: 8px; }
.filtre-btn { background: var(--white); border: 1px solid var(--border); border-radius: 20px; padding: 7px 16px; font-size: 13px; font-weight: 600; color: var(--sub); cursor: pointer; transition: all 0.15s; }
.filtre-btn:hover { border-color: var(--green); color: var(--text); }
.filtre-btn.active { background: var(--green); border-color: var(--green); color: #fff; }

/* Classement des stations */
.stations-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 14px; }
@media (max-width: 780px) { .stations-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .stations-grid { grid-template-columns: 1fr; } }
.station-row-wrap { background: var(--white); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; transition: box-shadow 0.15s; }
.station-row-wrap:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.1); }
.station-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; color: inherit; text-decoration: none; }
.station-rank { width: 26px; height: 26px; border-radius: 50%; background: var(--green-light); color: var(--green-dark); font-weight: 800; font-size: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.station-info { flex: 1; min-width: 0; }
.station-name { font-weight: 700; font-size: 15px; }
.station-addr { font-size: 13px; color: var(--sub); }
.station-price { font-weight: 800; color: var(--green-dark); font-size: 15.5px; white-space: nowrap; }
.station-pied { display: flex; align-items: center; justify-content: space-between; padding: 0 14px 10px; gap: 8px; font-size: 11.5px; color: var(--sub); }
.btns-nav { display: flex; gap: 6px; }
.btn-nav-icon { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border); background: var(--white); display: flex; align-items: center; justify-content: center; text-decoration: none; transition: background 0.15s; }
.btn-nav-icon:hover { background: var(--green-light); }

/* Tableaux */
.prix-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: 14px; overflow: hidden; border: 1px solid var(--border); }
.prix-table th { background: var(--bg); font-size: 12px; text-transform: uppercase; letter-spacing: 0.4px; color: var(--sub); text-align: left; padding: 12px 14px; }
.prix-table td { padding: 12px 14px; border-top: 1px solid var(--border); font-size: 14px; vertical-align: top; }
.prix-table td.num, .prix-table th.num { text-align: right; white-space: nowrap; }
.prix-table a { color: var(--text); font-weight: 700; text-decoration: none; }
.prix-table a:hover { color: var(--green-dark); }
.prix-min { color: var(--green-dark); font-weight: 800; }
.mini-note { font-size: 11.5px; color: var(--sub); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 14px; }
.ecart-neg { color: var(--green-dark); font-weight: 700; }
.ecart-pos { color: #DC2626; font-weight: 700; }
.prix-table tr.actif td { background: var(--green-light); }

/* Grilles de liens (distritos, concelhos) */
.prov-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 14px; }
@media (max-width: 640px) { .prov-grid { grid-template-columns: 1fr 1fr; } }
.prov-card { background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 14px; transition: border-color 0.15s, transform 0.15s; color: inherit; text-decoration: none; display: block; }
.prov-card:hover { border-color: var(--green); transform: translateY(-2px); }
.prov-name { font-weight: 800; font-size: 15px; }
.prov-price { font-size: 14px; font-weight: 700; color: var(--green-dark); }
.prov-count { font-size: 12px; color: var(--sub); margin-top: 4px; }
.crosslinks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.crosslinks a { background: var(--white); border: 1px solid var(--border); border-radius: 20px; padding: 8px 14px; font-size: 13px; text-decoration: none; color: var(--text); }
.crosslinks a:hover { border-color: var(--green); background: var(--green-light); }

/* Textes et FAQ */
.dossier-card { background: var(--white); border: 1px solid var(--border); border-left: 4px solid var(--green); border-radius: 14px; padding: 20px 22px; margin-bottom: 14px; }
.dossier-card h3 { font-size: 15.5px; font-weight: 700; margin-bottom: 8px; }
.dossier-card p { font-size: 14px; color: var(--sub); line-height: 1.75; }
.dossier-card p + p { margin-top: 10px; }
.faq-item { background: var(--white); border: 1px solid var(--border); border-radius: 12px; margin-bottom: 8px; overflow: hidden; }
.faq-q { padding: 15px 18px; font-weight: 700; font-size: 14px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq-a { padding: 0 18px; max-height: 0; overflow: hidden; font-size: 13.5px; color: var(--sub); line-height: 1.7; transition: all 0.2s; }
.faq-item.open .faq-a { padding: 0 18px 15px; max-height: 400px; }
.faq-item.open .faq-q .chev { transform: rotate(180deg); }
.chev { transition: transform 0.2s; color: var(--sub); }

/* Fiche station */
.posto-entete { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: flex-start; }
.posto-adresse { font-size: 14.5px; color: var(--sub); margin-top: 6px; }
.posto-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.badge { font-size: 12px; font-weight: 700; background: var(--white); border: 1px solid var(--border); border-radius: 20px; padding: 4px 10px; color: var(--sub); }
.btns-itineraire { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-itineraire { display: inline-flex; align-items: center; gap: 8px; background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 10px 14px; font-size: 14px; font-weight: 700; color: var(--text); text-decoration: none; }
.btn-itineraire:hover { background: var(--green-light); border-color: var(--green); }
#map-posto { height: 300px; border-radius: 16px; border: 1px solid var(--border); overflow: hidden; z-index: 1; }

/* ── Accueil : même présentation que l'accueil français (badge, titre, panneau de recherche + carte) ── */
.status-badge { display: inline-flex; align-items: center; gap: 8px; background: var(--green-light); color: #1A7A35; font-size: 12px; font-weight: 600; padding: 6px 14px; border-radius: 20px; margin-bottom: 20px; }
.status-badge .maj-relatif { font-weight: 500; }
.status-dot { width: 7px; height: 7px; background: var(--green); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
.hero-text h1 { font-size: clamp(28px, 4vw, 46px); font-weight: 800; letter-spacing: -1.5px; line-height: 1.1; margin-bottom: 12px; }
.hero-text h1 span { color: var(--green); }
.hero-intro { font-size: 15px; color: var(--sub); line-height: 1.7; margin-bottom: 20px; max-width: 800px; }

.map-section { margin-bottom: 40px; display: grid; grid-template-columns: 1fr 2fr; gap: 14px; align-items: stretch; }
@media (max-width: 860px) { .map-section { grid-template-columns: 1fr; } }
.map-section #map { height: 100%; min-height: 380px; }
.carte-filtres-panel { background: var(--white); border: 1px solid var(--border); border-radius: 16px; padding: 18px 20px; display: flex; flex-direction: column; justify-content: center; }
.cfp-row { margin-bottom: 20px; }
.cfp-row:last-of-type { margin-bottom: 0; }
.cfp-row-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.cfp-row-recherche { display: flex; flex-direction: column; gap: 14px; }
.cfp-input-wrap { position: relative; width: 100%; }
.cfp-locate-btn { width: 100%; padding: 13px 16px; border-radius: 12px; background: var(--green); border: none; color: #fff; font-size: 15px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; transition: background 0.15s; box-shadow: 0 2px 8px rgba(82,200,120,0.25); }
.cfp-locate-btn:hover { background: var(--green-dark); }
.cfp-locate-btn:disabled { opacity: 0.55; cursor: default; box-shadow: none; }
.cfp-reset-btn { width: 100%; padding: 11px 16px; border-radius: 12px; background: var(--white); border: 1px solid var(--border); color: var(--text); font-size: 14px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; }
.cfp-reset-btn:hover { background: var(--bg); }
.cfp-select { padding: 9px 12px; border: 1px solid var(--border); border-radius: 10px; font-size: 16px; font-family: inherit; background: var(--white); color: var(--text); cursor: pointer; }
.cfp-select:focus { outline: none; border-color: var(--green); }
.cfp-rayon { display: flex; align-items: center; gap: 10px; flex: 0 1 200px; min-width: 0; }
.cfp-rayon label { font-size: 13px; color: var(--sub); white-space: nowrap; }
.cfp-rayon input[type="range"] { width: 100px; accent-color: var(--green); }
@media (max-width: 600px) { .cfp-row-controls { flex-direction: column; align-items: stretch; } .cfp-rayon { flex: none; } }
.near-me-input { width: 100%; padding: 10px 14px; border: 1px solid var(--border); border-radius: 10px; font-size: 16px; font-family: inherit; }
.near-me-input:focus { outline: none; border-color: var(--green); }
.near-me-results { position: absolute; top: 100%; left: 0; right: 0; background: var(--white); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 8px 32px rgba(0,0,0,0.1); z-index: 50; display: none; max-height: 260px; overflow-y: auto; margin-top: 4px; }
.near-me-results.open { display: block; }
.near-me-results .search-item { padding: 10px 14px; font-size: 14px; cursor: pointer; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; gap: 8px; }
.near-me-results .search-item:last-child { border-bottom: none; }
.near-me-results .search-item:hover, .near-me-results .search-item.actif { background: var(--green-light); }
.near-me-results .search-item .dept { color: var(--sub); font-size: 12px; white-space: nowrap; }
.near-me-msg { font-size: 13px; color: var(--sub); margin-top: 12px; }
.near-me-msg:empty { display: none; }
.marker-pin { position: relative; width: 30px; height: 42px; }
.marker-pin::before { content: ""; position: absolute; top: 0; left: 3px; width: 24px; height: 24px; background: #EF4444; border: 3px solid #fff; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); box-shadow: 0 2px 6px rgba(0,0,0,0.35); }
.map-price-bubble.distrito { width: 46px; height: 46px; font-size: 12px; }

/* Cartes des stations autour du visiteur */
.cartes-postos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 8px; }
@media (max-width: 900px) { .cartes-postos { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cartes-postos { grid-template-columns: 1fr; } }
.station-card { background: var(--white); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; transition: box-shadow 0.2s; }
.station-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.1); }
.station-card.mais-barato::before { content: "Posto mais barato"; display: block; background: var(--green); color: #fff; font-size: 11px; font-weight: 700; text-align: center; padding: 5px 0; letter-spacing: 0.3px; }
.station-card > a { color: inherit; text-decoration: none; display: block; }
.station-card-header { padding: 16px 16px 12px; border-bottom: 1px solid var(--border); }
.station-card-name { font-size: 17px; font-weight: 700; }
.station-card-name small { font-weight: 500; color: var(--sub); font-size: 12px; margin-left: 6px; }
.station-card-addr { font-size: 13px; color: var(--sub); margin-top: 2px; }
.station-card-maj { font-size: 11.5px; color: var(--sub); opacity: 0.8; margin-top: 2px; }
.station-card-prix { padding: 10px 16px; display: flex; flex-direction: column; gap: 6px; }
.prix-ligne { display: flex; justify-content: space-between; align-items: center; padding: 6px 10px; border-radius: 8px; background: var(--bg); }
.prix-ligne.best { background: var(--green-light); }
.prix-ligne-label { font-size: 13px; font-weight: 600; }
.prix-ligne-val { font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; }
.station-card-footer { padding: 4px 16px 14px; display: flex; justify-content: flex-end; }
.c-gasoleo { color: #2563EB; } .c-gasolina95 { color: #16A34A; } .c-gasolina98 { color: #9333EA; } .c-gpl { color: #0D9488; }
