/* ------------------------------------------------------------------
   Shore excursions page (/madeira-shore-excursions/).
   Builds on /css/travel-guide.css (.tg-*); only cruise-specific
   components live here, scoped to .cr / .cr-*.
   ------------------------------------------------------------------ */

.cr .tg-hero-img { object-position: center 55%; }
.cr-rating { color: #fff; text-decoration: none; }
.cr-rating i { color: var(--tg-yellow); margin-right: 0 !important; }
.cr-rating:hover { text-decoration: underline; }

/* How it works */
.cr-steps { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.cr-steps li {
    position: relative; background: var(--tg-card); border-radius: var(--tg-radius); box-shadow: var(--tg-shadow);
    padding: 1.2rem 1.2rem 1.1rem; display: flex; flex-direction: column; gap: .3rem;
}
.cr-steps li > i { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: #fff6d6; color: #8a6400; margin-bottom: .35rem; }
.cr-steps strong { color: var(--tg-ink); }
.cr-steps span:not(.cr-step-num) { font-size: .9rem; color: var(--tg-muted); }
.cr-step-num {
    position: absolute; top: .9rem; right: 1rem; font-size: 2rem; font-weight: 700; line-height: 1;
    color: #f0f0f4;
}

/* Offer banner */
.cr-offer {
    margin-top: 1.5rem; display: flex; align-items: center; gap: 1rem 1.25rem; flex-wrap: wrap;
    padding: 1.2rem 1.4rem; border-radius: var(--tg-radius); color: #fff;
    background: linear-gradient(120deg, #1c1c1e 0%, #2d2d31 60%, #3b3320 100%);
}
.cr-offer > i { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--tg-yellow); color: #1a1a1a; font-size: 1.1rem; flex: none; }
.cr-offer div { flex: 1 1 260px; }
.cr-offer strong { display: block; font-size: 1.1rem; }
.cr-offer span { color: rgba(255,255,255,.78); font-size: .92rem; }

/* Tours */
.cr-tours { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.cr-tour { background: var(--tg-card); border-radius: var(--tg-radius); box-shadow: var(--tg-shadow); overflow: hidden; display: flex; flex-direction: column; }
.cr-tour-img { position: relative; display: block; aspect-ratio: 4 / 3; background: #e9e9ef; overflow: hidden; }
.cr-tour-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.cr-tour:hover .cr-tour-img img { transform: scale(1.03); }
.cr-tour-dur {
    position: absolute; left: .6rem; bottom: .6rem; background: rgba(20,20,22,.82); color: #fff;
    font-size: .76rem; font-weight: 600; padding: .2rem .55rem; border-radius: 999px; backdrop-filter: blur(4px);
}
.cr-tour-dur i { color: var(--tg-yellow); margin-right: .2rem; }
.cr-tour-body { padding: .85rem 1rem 1rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.cr-tour h3 { font-size: 1rem; line-height: 1.3; margin: 0; }
.cr-tour h3 a { color: var(--tg-ink); text-decoration: none; }
.cr-tour h3 a:hover { text-decoration: underline; text-decoration-color: var(--tg-yellow); text-decoration-thickness: 2px; }
.cr-tour-port { margin: 0; font-size: .8rem; color: var(--tg-muted); }
.cr-tour-port i { color: #b88a00; margin-right: .2rem; }
.cr-tour-foot { margin-top: auto; padding-top: .5rem; display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.cr-tour-price { font-size: .82rem; color: var(--tg-muted); line-height: 1.2; }
.cr-tour-price strong { color: var(--tg-ink); font-size: 1.05rem; }
.cr-tour-price small { display: block; font-size: .7rem; }
.cr-tour-book {
    background: var(--tg-yellow); color: #1a1a1a; font-weight: 700; font-size: .85rem; text-decoration: none;
    padding: .45rem 1rem; border-radius: 999px;
}
.cr-tour-book:hover { background: var(--tg-yellow-dark); }
.cr-custom { margin: 1rem 0 0; font-size: .92rem; }
.cr-custom a, .cr-note a, .cr-table a { color: var(--tg-ink); font-weight: 600; text-decoration-color: var(--tg-yellow); text-decoration-thickness: 2px; }

/* Plan table */
.cr-table td:nth-child(1) { font-weight: 700; color: var(--tg-ink); white-space: nowrap; width: auto; }
.cr-table td:nth-child(2), .cr-table td:nth-child(3) { color: var(--tg-text); white-space: normal; }
.cr-note { margin: 1rem 0 0; font-size: .92rem; color: var(--tg-muted); }
.cr-note i { color: #b88a00; margin-right: .3rem; }

/* Pickup */
.cr-pickup {
    margin-top: 1rem; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    background: var(--tg-card); border-radius: var(--tg-radius); box-shadow: var(--tg-shadow); overflow: hidden;
}
.cr-map { min-height: 280px; background: #e9e9ef; }
.cr-map iframe { width: 100%; height: 100%; min-height: 280px; border: 0; display: block; }
.cr-pickup-text { padding: 1.3rem 1.4rem; }
.cr-pickup-text h3 { font-size: 1.05rem; color: var(--tg-ink); margin: 0 0 .5rem; }
.cr-pickup-text p { margin: 0 0 .8rem; font-size: .92rem; }
.cr-pickup-text ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; font-size: .9rem; }
.cr-pickup-text li i { color: #1e8a47; margin-right: .4rem; }
.cr-pickup-text a { color: var(--tg-ink); font-weight: 600; }

/* Testimonials */
.cr-quotes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1rem; }
.cr-quote { margin: 0; background: var(--tg-card); border-radius: var(--tg-radius); box-shadow: var(--tg-shadow); padding: 1.3rem 1.4rem; position: relative; }
.cr-quote::before { content: "“"; position: absolute; top: .2rem; right: 1rem; font-size: 3.5rem; line-height: 1; color: #fff0c2; font-family: Georgia, serif; }
.cr-quote blockquote { margin: 0 0 .7rem; font-size: .95rem; color: var(--tg-ink); }
.cr-quote figcaption { font-size: .82rem; color: var(--tg-muted); font-weight: 600; }
.cr-platforms { margin: 1rem 0 0; font-size: .9rem; color: var(--tg-muted); }
.cr-platforms a { color: var(--tg-ink); font-weight: 600; }

/* Request form */
.cr-request { background: var(--tg-card); border-radius: var(--tg-radius); box-shadow: var(--tg-shadow); padding: 1.5rem; }
.cr-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem 1rem; }
.cr-form label { display: flex; flex-direction: column; gap: .3rem; font-size: .85rem; font-weight: 600; color: var(--tg-ink); }
.cr-form-wide { grid-column: 1 / -1; }
.cr-form input, .cr-form select, .cr-form textarea {
    font: inherit; font-weight: 400; font-size: .95rem; color: var(--tg-ink);
    padding: .65rem .8rem; border: 1px solid #d6d6de; border-radius: 10px; background: #fafafc; width: 100%;
}
.cr-form input:focus, .cr-form select:focus, .cr-form textarea:focus { outline: none; border-color: var(--tg-yellow); box-shadow: 0 0 0 3px rgba(255,193,7,.3); background: #fff; }
.cr-form-error { grid-column: 1 / -1; margin: 0; color: #b42318; font-size: .88rem; font-weight: 600; }
.cr-form-error[hidden] { display: none; }
.cr-btn-whatsapp { grid-column: 1 / -1; justify-self: start; background: #25d366; color: #fff; border: 0; cursor: pointer; font: inherit; font-weight: 700; }
.cr-btn-whatsapp:hover { background: #1eb457; }

/* Desktop: match the compact sizing used on the guide */
@media (min-width: 1081px) {
    .cr-steps li { padding: 1rem 1.05rem; }
    .cr-steps strong { font-size: .95rem; }
    .cr-steps span:not(.cr-step-num) { font-size: .84rem; }
    .cr-offer strong { font-size: 1rem; }
    .cr-offer span { font-size: .86rem; }
    .cr-tour h3 { font-size: .93rem; }
    .cr-quote blockquote { font-size: .9rem; }
    .cr-pickup-text p, .cr-pickup-text ul { font-size: .86rem; }
}

@media (max-width: 1080px) {
    .cr-tours { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    .cr-steps, .cr-quotes { grid-template-columns: minmax(0, 1fr); }
    .cr-pickup { grid-template-columns: minmax(0, 1fr); }
    .cr-form { grid-template-columns: minmax(0, 1fr); }
    .cr-btn-whatsapp { justify-self: stretch; }
}
@media (max-width: 640px) {
    .cr-tours { grid-template-columns: minmax(0, 1fr); }
    .cr-request { padding: 1.1rem; }
}
@media (prefers-reduced-motion: reduce) {
    .cr-tour-img img { transition: none; }
    .cr-tour:hover .cr-tour-img img { transform: none; }
}
