:root {
    /* Premium Coastal Palette */
    --primary: #0e4b5b;
    /* Deep Ocean Teal */
    --secondary: #2c7a7b;
    /* Softer Teal */
    --accent: #f4d03f;
    /* Golden Sun - accents */
    --sand: #fdfcf0;
    /* Light Sand - background */
    --white: #ffffff;
    --text-dark: #1a202c;
    --text-light: #718096;
    --border: #e2e8f0;

    /* Spacing */
    --container-width: 1200px;
    --header-height: 80px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

    /* Fonts relative to standard sans-serif for now, can import Google Fonts in header */
    --font-heading: 'Outfit', 'Inter', sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--sand);
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--primary);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    display: block;
    border-radius: 8px;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 2rem;
    background-color: var(--white);
    border-radius: 16px;
}

/* Containers that should NOT have white background */
header .container,
.hero .container,
.breadcrumbs .container,
footer .container,
.section-full .container {
    background-color: transparent;
    border-radius: 0;
    padding: 0 2rem;
}

/* Full-width colored sections */
.section-full {
    padding: 3rem 0;
}

.section-full .container {
    padding: 2rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
}

.section {
    padding: 0;
}

/* Header */
header {
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--secondary);
}

nav ul {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

nav a {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.2s ease;
}

nav a:hover {
    background: var(--secondary);
    color: white;
    transform: translateY(-1px);
}

/* Dropdown Menu */
.nav-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-dropdown > a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.nav-dropdown > a::after {
    content: '';
    border: solid currentColor;
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 2.5px;
    transform: rotate(45deg);
    margin-top: -3px;
    transition: transform 0.2s ease;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    min-width: 220px;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 1001;
    border: 1px solid var(--border);
    margin-top: 0.5rem;
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-bottom-color: var(--white);
    border-top: none;
}

/* Desktop only: show dropdown on hover */
@media (min-width: 901px) {
    .nav-dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
    }

    .nav-dropdown:hover > a::after {
        transform: rotate(-135deg);
        margin-top: 3px;
    }
}

/* Both desktop and mobile: show dropdown when .active class is applied */
.nav-dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.nav-dropdown.active > a::after {
    transform: rotate(-135deg);
    margin-top: 3px;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    color: var(--text-dark);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border-radius: 0;
}

.dropdown-menu a:hover {
    background: var(--sand);
    color: var(--primary);
    transform: none;
}

.dropdown-menu a .dropdown-icon {
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
}

.dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 0.5rem 0;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
    position: relative;
    transition: all 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 28px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

/* Hamburger to X animation */
.mobile-menu-toggle.active .hamburger {
    background: transparent;
}

.mobile-menu-toggle.active .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.mobile-menu-toggle.active .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}

/* Mobile Responsive */
@media (max-width: 900px) {
    .mobile-menu-toggle {
        display: block;
    }

    header nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: linear-gradient(180deg, #ffffff 0%, #f0f9ff 50%, #fdfcf0 100%);
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
        transition: right 0.3s ease;
        z-index: 1000;
        padding: 5rem 2rem 2rem;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    header nav.active {
        right: 0;
    }

    header nav ul {
        flex-direction: column;
        gap: 0;
        align-items: stretch;
    }

    header nav li {
        border-bottom: 1px solid var(--border);
        text-align: left;
    }

    header nav li:last-child {
        border-bottom: none;
    }

    header nav a {
        display: block;
        padding: 1rem 0.5rem;
        font-size: 1.1rem;
        color: var(--primary);
        transition: all 0.2s ease;
        text-align: left;
    }

    header nav a:hover {
        background: var(--secondary);
        color: white;
        padding-left: 1rem;
        border-radius: 8px;
    }

    /* Mobile dropdown styles - show all items stacked */
    .nav-dropdown {
        display: flex;
        flex-direction: column;
        border-bottom: none !important;
    }

    .nav-dropdown > a {
        display: none;
    }

    .dropdown-menu {
        position: static;
        transform: none;
        box-shadow: none;
        border: none;
        border-radius: 0;
        background: transparent;
        margin: 0;
        padding: 0;
        max-height: none;
        overflow: visible;
        opacity: 1;
        visibility: visible;
        display: flex;
        flex-direction: column;
        min-width: 100%;
    }

    .dropdown-menu::before {
        display: none;
    }

    .dropdown-menu a {
        display: block;
        padding: 1rem 0.5rem 1rem 1.5rem;
        font-size: 1rem;
        border-bottom: 1px solid var(--border);
        color: var(--primary);
        text-align: left;
    }

    .dropdown-menu a:last-child {
        border-bottom: none;
    }

    .dropdown-menu a:hover {
        background: var(--secondary);
        color: white;
        padding-left: 2rem;
        border-radius: 8px;
    }

    .dropdown-divider {
        display: none;
    }

    /* Overlay when menu is open */
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(14, 75, 91, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
    }

    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* Mobile Hero Adjustments */
    .hero {
        min-height: 350px;
        height: auto;
        padding: calc(var(--header-height) + 1.5rem) 1rem 1.5rem;
    }

    .hero h1 {
        font-size: 1.5rem !important;
        margin-bottom: 0.75rem;
        line-height: 1.25;
    }

    .hero p {
        font-size: 0.9rem;
        margin-bottom: 1.25rem;
    }

    .hero .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}

/* Hero */
.hero {
    height: 80vh;
    min-height: 600px;
    background: linear-gradient(rgba(14, 75, 91, 0.4), rgba(14, 75, 91, 0.6)), url('../images/hero-bg.jpg');
    /* Local image */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding-top: var(--header-height);
    margin-bottom: 0;
}

/* Breadcrumbs - Beach Trail */
.breadcrumbs {
    background: linear-gradient(180deg, #e8f4f8 0%, #fdfcf0 100%);
    padding: 1.25rem 0;
}

.breadcrumbs .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.breadcrumbs ul {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    flex-wrap: wrap;
}

/* Share widget inside breadcrumbs - compact styling */
.breadcrumbs .share-widget {
    padding: 0;
    margin-bottom: 0;
}

.breadcrumbs li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.breadcrumbs li:not(:last-child)::after {
    content: '🏖️';
    font-size: 0.85rem;
    margin-left: 0.5rem;
    opacity: 0.7;
}

.breadcrumbs a {
    color: var(--secondary);
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 20px;
    transition: all 0.2s ease;
}

.breadcrumbs a:hover {
    background: var(--secondary);
    color: white;
    transform: translateY(-1px);
}

.breadcrumbs .current {
    color: var(--primary);
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    background: rgba(14, 75, 91, 0.1);
    border-radius: 20px;
}

.hero h1 {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Card Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
    border: 1px solid var(--border);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-image {
    height: 240px;
    background-color: var(--border);
    background-size: cover;
    background-position: center;
}

.card-content {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.card-desc {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

/* Footer */
footer {
    background-color: var(--primary);
    color: var(--white);
    padding: 3rem 0;
    margin-top: 3rem;
}

footer h3 {
    color: var(--white);
    margin-bottom: 1rem;
}

footer p {
    color: rgba(255, 255, 255, 0.8);
}

/* Gallery Images */
.gallery-image {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-image:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

/* Lightbox Modal */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.lightbox-image {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
}

.lightbox-close {
    position: fixed;
    top: 20px;
    right: 30px;
    font-size: 2.5rem;
    color: white;
    cursor: pointer;
    z-index: 2001;
    transition: color 0.3s ease;
    background: none;
    border: none;
    line-height: 1;
}

.lightbox-close:hover {
    color: var(--accent);
}

.lightbox-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
    color: white;
    cursor: pointer;
    z-index: 2001;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: none;
    border-radius: 4px;
    transition: background 0.3s ease, color 0.3s ease;
}

.lightbox-nav:hover {
    background: rgba(0, 0, 0, 0.6);
    color: var(--accent);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-counter {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1rem;
    background: rgba(0, 0, 0, 0.5);
    padding: 0.5rem 1rem;
    border-radius: 50px;
}

/* Responsive lightbox */
@media (max-width: 768px) {
    .lightbox-nav {
        font-size: 2rem;
        padding: 0.75rem;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .lightbox-close {
        top: 15px;
        right: 15px;
        font-size: 2rem;
    }
}

/* Activity Content Styling */
.activity-content p {
    margin-bottom: 1.5rem;
}

.activity-content ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.activity-content li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.activity-content strong {
    color: var(--primary);
}


/* Social Share Widget */
.share-widget {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    margin-bottom: 1.5rem;
}

.share-label {
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: italic;
}

.share-buttons {
    display: flex;
    gap: 0.75rem;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    color: var(--text-light);
}

.share-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(14, 75, 91, 0.05);
}

.share-icon {
    font-size: 1rem;
    line-height: 1;
}

.share-fb .share-icon {
    font-weight: 700;
    font-size: 1.1rem;
}

/* Hide text labels - icon only */
.share-btn-text {
    display: none;
}

/* Copied state */
.share-btn.copied {
    border-color: var(--secondary);
    color: var(--secondary);
    background: rgba(44, 122, 123, 0.1);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .share-widget {
        gap: 0.75rem;
    }

    .share-btn {
        width: 34px;
        height: 34px;
    }

    .share-icon {
        font-size: 0.9rem;
    }
}

/* Sister property (other rental) card on property pages */
.sister-property-card {
    display: grid;
    grid-template-columns: minmax(280px, 360px) 1fr;
    gap: 0;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    margin-bottom: 2rem;
}

.sister-property-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.sister-img {
    background-size: cover;
    background-position: center;
    min-height: 240px;
}

.sister-content {
    padding: 1.5rem 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sister-kicker {
    display: inline-block;
    background: var(--sand);
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    width: fit-content;
}

@media (max-width: 720px) {
    .sister-property-card {
        grid-template-columns: 1fr;
    }

    .sister-img {
        min-height: 200px;
    }

    .sister-content {
        padding: 1.25rem;
    }
}

/* =========================================
   Trip Planner – fun & beachy redesign
   ========================================= */
.planner-options-section .container {
    background: linear-gradient(135deg, #fffdf8 0%, #f5fbfb 55%, #fdfcf0 100%);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
}

.planner-section-title {
    margin: 0 0 0.25rem;
    font-size: 1.65rem;
}

.planner-section-sub {
    color: var(--text-light);
    margin: 0 0 1.5rem;
    line-height: 1.6;
}

.planner-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem 1.2rem;
    margin-bottom: 1.5rem;
}

.planner-field-dates {
    grid-column: span 2;
    min-width: 260px;
}

.planner-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.planner-label {
    font-weight: 600;
    color: var(--primary);
    font-size: 0.95rem;
}

.planner-field input[type="text"],
.planner-field select {
    width: 100%;
    padding: 0.75rem 0.85rem;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.95rem;
    background: var(--white);
    color: var(--text-dark);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.planner-field input[type="text"]:focus,
.planner-field select:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(44, 122, 123, 0.15);
}

.planner-help {
    color: var(--text-light);
    font-size: 0.85rem;
    line-height: 1.45;
}

.planner-interests {
    margin-bottom: 1.5rem;
}

.interest-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.55rem;
    margin-top: 0.6rem;
}

.interest-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.85rem;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: 999px;
    cursor: pointer;
    font-size: 0.92rem;
    transition: all 0.15s;
    user-select: none;
}

.interest-option:hover {
    border-color: var(--secondary);
    background: #f0fafa;
}

.interest-option input[type="checkbox"] {
    accent-color: var(--secondary);
    margin: 0;
}

.interest-option:has(input:checked) {
    background: linear-gradient(135deg, #e8f5f4, #fffbe5);
    border-color: var(--accent);
    box-shadow: inset 0 0 0 1px var(--accent);
}

.planner-build-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    padding-top: 0.5rem;
    border-top: 1px dashed var(--border);
}

.btn-build {
    font-size: 1.05rem;
    padding: 0.95rem 2rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    box-shadow: 0 8px 20px -8px rgba(14, 75, 91, 0.5);
}

.btn-build:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 26px -8px rgba(14, 75, 91, 0.6);
}

.btn-build:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

.planner-build-note {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Plans output */
.plans-section .container {
    background: var(--white);
}

.plans-title {
    margin: 0 0 0.75rem;
    font-size: 1.75rem;
}

.plans-intro {
    color: var(--text-dark);
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.plans-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.meta-chip {
    background: #f8fbfc;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.75rem 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.meta-label {
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--secondary);
    font-weight: 700;
}

.advisory {
    border-radius: 14px;
    padding: 0.9rem 1.05rem;
    margin-bottom: 1.1rem;
    line-height: 1.6;
}

.advisory strong {
    display: block;
    margin-bottom: 0.2rem;
    color: var(--primary);
}

.advisory p {
    margin: 0;
    color: var(--text-dark);
}

.advisory-note {
    background: #f8fbfc;
    border: 1px solid var(--border);
}

.advisory-warn {
    background: #fff4f4;
    border: 1px solid #f3c3c3;
}

.advisory-warn strong {
    color: #a33;
}

.advisory-good {
    background: #f3fbf4;
    border: 1px solid #cde8d0;
}

.advisory-good strong {
    color: #2f7d47;
}

.advisory-event {
    background: linear-gradient(135deg, #fffbe5, #fff3d1);
    border: 1px solid var(--accent);
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.plan-column {
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.plan-column-head {
    padding: 1.25rem 1.25rem 1rem;
    color: white;
    position: relative;
}

.plan-column-head h3 {
    color: white;
    margin: 0.35rem 0 0.3rem;
    font-size: 1.35rem;
}

.plan-column-head p {
    margin: 0;
    opacity: 0.95;
    font-size: 0.92rem;
    line-height: 1.5;
}

.plan-head-a {
    background: linear-gradient(135deg, #f4d03f 0%, #f39c12 45%, #e67e22 100%);
}

.plan-head-a h3,
.plan-head-a p {
    color: #1a202c;
}

.plan-head-b {
    background: linear-gradient(135deg, #0e4b5b 0%, #2c7a7b 55%, #38b2ac 100%);
}

.plan-pill {
    display: inline-block;
    background: rgba(255, 255, 255, 0.85);
    color: #0e4b5b;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.plan-head-b .plan-pill {
    background: rgba(255, 255, 255, 0.22);
    color: white;
}

.plan-cards {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    background: #fbfdfd;
}

.plan-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.15s, box-shadow 0.15s;
    display: flex;
    flex-direction: column;
}

.plan-card:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.plan-card-img {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #e8f0f2;
}

.plan-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0;
    transition: transform 0.3s ease;
}

.plan-card:hover .plan-card-img img {
    transform: scale(1.03);
}

.plan-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem;
    padding: 0.75rem 1.1rem 0;
    background: transparent;
}

.weather-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: #e8f4f8;
    color: var(--primary);
    padding: 0.2rem 0.6rem 0.2rem 0.45rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid #cfe3eb;
    white-space: nowrap;
}

.weather-pill.is-rainy {
    background: #eef2f7;
    color: #466074;
    border-color: #cfd6e0;
}

.weather-pill .wx-ic {
    font-size: 0.95rem;
    line-height: 1;
}

.weather-pill .wx-t {
    font-weight: 700;
}

.weather-pill .wx-d {
    color: var(--text-light);
    font-weight: 500;
}

.plan-card-body {
    padding: 0.5rem 1.1rem 0.25rem;
}

.day-badge {
    background: var(--primary);
    color: white;
    padding: 0.25rem 0.35rem 0.25rem 0.7rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.slot-tag {
    background: var(--accent);
    color: #1a202c;
    padding: 0.1rem 0.55rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.pick-badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.22rem 0.6rem;
    border-radius: 999px;
    white-space: nowrap;
}

.pick-activity {
    background: #eef6f8;
    color: var(--primary);
}

.pick-event {
    background: #fff4d6;
    color: #8a6200;
}

.plan-card h4 {
    margin: 0 0 0.5rem;
    color: var(--primary);
    font-size: 1.1rem;
}

.plan-card p {
    margin: 0 0 0.5rem;
    color: var(--text-dark);
    font-size: 0.92rem;
    line-height: 1.55;
}

.card-lede {
    color: var(--text-dark);
}

.card-when {
    color: var(--secondary);
    font-weight: 600;
    font-size: 0.88rem !important;
}

.card-mood,
.card-fit,
.card-cost {
    color: var(--text-light) !important;
    font-size: 0.88rem !important;
}

.card-mood strong,
.card-fit strong,
.card-cost strong {
    color: var(--primary);
}

.plan-card-foot {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin: 0.6rem 1.1rem 0.9rem;
    padding-top: 0.7rem;
    border-top: 1px dashed var(--border);
    background: transparent;
    color: inherit;
}

.btn-sm {
    padding: 0.45rem 0.95rem;
    font-size: 0.85rem;
}

.btn-add {
    background: linear-gradient(135deg, var(--accent), #f39c12);
    color: #1a202c;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
}

.btn-add:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px -4px rgba(243, 156, 18, 0.55);
}

.btn-add.is-added {
    background: linear-gradient(135deg, #2c7a7b, #38b2ac);
    color: white;
}

.plans-tip {
    margin-top: 1.25rem;
    padding: 0.9rem 1.05rem;
    background: #f8fbfc;
    border: 1px dashed var(--secondary);
    border-radius: 12px;
    color: var(--text-dark);
    font-size: 0.92rem;
}

/* Itinerary panel */
.itinerary-section .container {
    background: linear-gradient(135deg, var(--white) 0%, #f5fbfb 100%);
    border: 2px dashed var(--secondary);
}

.itinerary-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.itin-list {
    list-style: none;
    margin: 0 0 1.25rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.itin-row {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 0.9rem 1rem;
    display: grid;
    grid-template-columns: 130px 1fr auto;
    gap: 1rem;
    align-items: start;
}

.itin-day {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.itin-day label {
    font-size: 0.82rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.itin-day input[type="number"] {
    width: 58px;
    padding: 0.35rem 0.45rem;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 0.92rem;
    font-family: inherit;
}

.itin-date {
    font-size: 0.82rem;
    color: var(--primary);
    font-weight: 600;
}

.itin-main {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.itin-kind {
    display: inline-block;
    width: fit-content;
    font-size: 0.72rem;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    font-weight: 700;
}

.itin-kind.activity {
    background: #eef6f8;
    color: var(--primary);
}

.itin-kind.event {
    background: #fff4d6;
    color: #8a6200;
}

.itin-main strong {
    color: var(--primary);
    font-size: 1.02rem;
}

.itin-main p {
    margin: 0;
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
}

.itin-link {
    font-size: 0.85rem;
    color: var(--secondary);
    font-weight: 600;
}

.itin-actions {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.itin-actions button {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: 8px;
    width: 34px;
    height: 32px;
    cursor: pointer;
    color: var(--primary);
    transition: all 0.15s;
}

.itin-actions button:hover {
    border-color: var(--secondary);
    background: #f0fafa;
}

.itin-actions button[data-action="remove"] {
    color: #c0392b;
}

.itin-actions button[data-action="remove"]:hover {
    background: #fdecea;
    border-color: #c0392b;
}

.itinerary-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px dashed var(--secondary);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent), #f39c12);
    color: #1a202c;
    border: none;
}

.btn-accent:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px -6px rgba(243, 156, 18, 0.5);
}

.cal-dropdown {
    position: relative;
}

.cal-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    list-style: none;
    margin: 0;
    padding: 0.4rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    min-width: 240px;
    z-index: 1000;
    display: none;
}

.cal-menu.open {
    display: block;
}

.cal-menu li {
    list-style: none;
}

.cal-menu li.cal-divider {
    height: 1px;
    background: var(--border);
    margin: 0.35rem 0.4rem;
}

.cal-menu button {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    padding: 0.55rem 0.75rem;
    background: transparent;
    border: none;
    border-radius: 8px;
    font-size: 0.92rem;
    cursor: pointer;
    color: var(--text-dark);
    text-align: left;
    font-family: inherit;
}

.cal-menu button:hover {
    background: #f0fafa;
    color: var(--primary);
}

.cal-ic {
    font-size: 1.05rem;
    width: 1.4em;
    text-align: center;
}

/* Floating itinerary FAB */
.itinerary-fab {
    position: fixed;
    bottom: 22px;
    right: 22px;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1.2rem 0.85rem 1rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 14px 28px -10px rgba(14, 75, 91, 0.55), 0 6px 14px -6px rgba(0, 0, 0, 0.2);
    z-index: 950;
    font-family: inherit;
    transition: transform 0.15s, box-shadow 0.15s;
}

.itinerary-fab:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 32px -10px rgba(14, 75, 91, 0.6), 0 8px 16px -6px rgba(0, 0, 0, 0.25);
}

.fab-icon {
    font-size: 1.25rem;
}

.fab-count {
    background: var(--accent);
    color: #1a202c;
    padding: 0.05rem 0.55rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 800;
    min-width: 1.6em;
    text-align: center;
}

/* Share modal */
.share-modal {
    position: fixed;
    inset: 0;
    background: rgba(14, 75, 91, 0.55);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 1100;
    backdrop-filter: blur(2px);
}

.share-modal.open {
    display: flex;
}

.share-modal-box {
    background: var(--white);
    border-radius: 18px;
    padding: 1.75rem;
    width: 100%;
    max-width: 520px;
    position: relative;
    box-shadow: var(--shadow-lg);
}

.share-modal-box h3 {
    margin: 0 0 0.4rem;
    font-size: 1.35rem;
}

.share-modal-box p {
    margin: 0 0 1rem;
    color: var(--text-light);
    line-height: 1.6;
}

.share-close {
    position: absolute;
    top: 8px;
    right: 10px;
    background: transparent;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
    color: var(--text-light);
    line-height: 1;
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

.share-close:hover {
    background: #f0fafa;
    color: var(--primary);
}

.share-url-row {
    display: flex;
    gap: 0.5rem;
}

.share-url-row input {
    flex: 1;
    padding: 0.7rem 0.85rem;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.85rem;
    background: #f8fbfc;
}

.share-note {
    margin-top: 0.9rem !important;
    font-size: 0.85rem;
}

/* Mobile tweaks */
@media (max-width: 720px) {
    .planner-field-dates {
        grid-column: span 1;
    }

    .plans-grid {
        grid-template-columns: 1fr;
    }

    .itin-row {
        grid-template-columns: 1fr;
    }

    .itin-actions {
        flex-direction: row;
        justify-content: flex-start;
    }

    .itinerary-fab .fab-label {
        display: none;
    }

    .itinerary-fab {
        padding: 0.75rem 0.9rem;
    }

    .cal-menu {
        left: auto;
        right: 0;
    }
}

/* Print-friendly — used if user chooses window.print */
@media print {

    header,
    footer,
    .breadcrumbs,
    .itinerary-fab,
    .share-modal,
    .planner-options-section,
    .plans-section,
    .itinerary-actions,
    .itin-actions {
        display: none !important;
    }

    .itinerary-section .container {
        background: var(--white);
        border: none;
    }
}

