body {
    background: var(--bg);
    color: var(--text);
}

:root {
    --bg: #ffffff;
    --bg-alt: #f8f9fc;
    --text: #1a1a1a;
    --text-muted: #555;
    --border: #e2e6ef;
    --card-bg: #ffffff;
    --panel-bg: #ffffff;
    --navbar-bg: #ffffff;
}

.dark-mode .private-toggle .darkmode-text {
    color: #cdcdcd;
}

.dark-mode .edit-mode-badge {
    background: rgba(255, 200, 0, 0.2);
    color: #ffd700;
    box-shadow: 0 0 12px rgba(255, 200, 0, 0.5),
                0 0 24px rgba(255, 200, 0, 0.3);
}

.dark-mode .index-header-image::after {
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.2),
        rgba(0, 0, 0, 0.55)
    );
}

.dark-mode .index-header-image img {
    filter: brightness(0.85);
}

.dark-mode .index-header-image-full {
    box-shadow: 0 6px 22px rgba(0,0,0,0.45);
}

.dark-mode {
    --bg: #121212;
    --bg-alt: #1e1e1e;
/*    --text: #e6e6e6;*/
    --text-muted: #aaaaaa;
    --border: #333;
    --card-bg: #1a1a1a;
    --panel-bg: #1a1a1a;
    --navbar-bg: #1a1a1a;
}

.dark-mode .journey-card {
    background: #cdcdcd;
}

.dark-mode #pagination .page-btn {
    background: #cdcdcd;
}

.dark-mode #journeyname {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.25;
    color: #ffffff;
    padding: 4px 0;
    transition: border-color .25s ease, color .25s ease;
}

/*
.dark-mode .itineraryday::before {
    opacity: 0.10;
}
*/
.dark-mode .control-btn {
    background: #2a2a2a;
    color: #eee;
    border-color: #444;
}

* {
    transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}
/*
.google-login-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid #dadce0;
    color: #3c4043;
}
*/
.google-login-btn:hover {
    background: #f7f8f8;
}

.google-icon {
    width: 18px;
    height: 18px;
}

.time {
	font-size:50px;
}
.start-button {}
.split-button {}
.reset-button {}

.page-btn.active {
    background-color: #007bff;
    color: white;
    font-weight: bold;
}

.ShareOnFacebook {
	font-size:18px;
	font-weight:bold;
}

.container {
	max-width:1200px;
	min-height: 100vh;   /* full viewport height */
	height: auto;        /* allow it to grow if content is taller */
	display: block;
}

.centertext {
	text-align:center;
	margin: 0 auto;
}

.row-height {
	height: 120px;
}

.tzconverterlocation, .specialevent {
	font-weight:bold;
	font-size:16px;
    margin-top: 5px; 
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.tzconverterdate {
	font-size:14px;
}

.tzconvertertime {
	font-size:22px;
}

#TargetCities {
	width:300px;
	height:120px;
	margin: 0 auto;
}

#contactform {
	width:640px;
	margin: 0 auto;
}

#basicgamelogo {
	max-width:300px;
	max-height:300px;
}

#topbar {
	margin-left:10px;
	margin-top:10px;
	vertical-align:bottom;
}

#footer {
	background: #450000;
	color: #FFF;
	line-height: 25px;
	text-align: center;
	font-size: 12px;
}

#footer a {
	color: #FFF;
}

#PlayerSettings {
	width:600px;
}

#CountdownSettings{
	width:350px;
}

#CountdownAnytimeSettings{
	width:500px;
}

#defaultCountdown {
	width:300px;
}

#selectedsound {
	width:100%;
}

.countdownnumbersdiv {
	width:300px;
	border: 1px solid #ccc;
	background-color: #eee;
	height:50px;
}

.flipclockcountdownnumbersdiv {
	width:690px;
	margin-top:30px;
}

.LWTcountdownnumbersdiv {
	width:650px;
}

.countdowninput {
	width:65px;
	margin-left:15px;
}

#countdownProgressBar {
    width: 400px;
    height: 22px;
    border: 1px solid #111;
    background-color: #292929;
}
#countdownProgressBar div {
    height: 100%;
    color: #fff;
    text-align: right;
    line-height: 22px; /* same as #progressBar height if we want text middle aligned */
    width: 0;
    background-color: #0099ff;
}

.jquery-ui-like {
	width: 400px;
	border-radius: 4px;
	background: #FFF;
	border: 1px solid #AAA;
	overflow: hidden;		
}
.jquery-ui-like div {
	background-image: url(pbar-ani.gif);
	border-right: 1px solid #AAA;
}


/* start results box for timezoneconverter */

.wrap  {
    background: #FFFFFF;
    background: -moz-linear-gradient(0deg, #F5F5F5 0%, #FFF 25%, #FFF 75%, #F5F5F5 100%);
    background: -ms-linear-gradient(0deg, #F5F5F5 0%, #FFF 25%, #FFF 75%, #F5F5F5 100%);
    background: -webkit-linear-gradient(0deg, #F5F5F5 0%, #FFF 25%, #FFF 75%, #F5F5F5 100%);
    background: linear-gradient(0deg, #F5F5F5 0%, #FFF 25%, #FFF 75%, #F5F5F5 100%);
    border: 1px solid #777777;
    -moz-border-radius: 6px 6px 6px 6px;
    -webkit-border-radius: 6px 6px 6px 6px;
    border-radius: 6px 6px 6px 6px;
    -moz-box-shadow: 0 0 6px rgba(0, 0, 0, 0.5);
    -webkit-box-shadow: 0 0 6px rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.5);
    margin: 20px auto;
    padding: 12px;
    position: relative;
}

.wrap :before, .wrap :after {
    background: none;
    bottom: 12px;
    -moz-box-shadow: 0 10px 12px rgba(0, 0, 0, 0.5);
    -webkit-box-shadow: 0 10px 12px rgba(0, 0, 0, 0.5);
    box-shadow: 0 10px 12px rgba(0, 0, 0, 0.5);
    content: "";
    height: 10px;
    left: 12px;
    position: absolute;
    width: 40%;
    z-index: -1;
    -moz-transform: skew(-4deg) rotate(-4deg);
    -webkit-transform: skew(-4deg) rotate(-4deg);
    transform: skew(-4deg) rotate(-4deg);
}

.wrap :after {
    -moz-transform: skew(4deg) rotate(4deg);
    -webkit-transform: skew(4deg) rotate(4deg);
    transform: skew(4deg) rotate(4deg);
    left: auto;
    right: 12px;
}

.shadow-bottom:before, .shadow-bottom:after {
    top: auto;
    bottom: 12px;
    -moz-box-shadow: 0 10px 14px rgba(0, 0, 0, 0.5);
    -webkit-box-shadow: 0 14px 12px rgba(0, 0, 0, 0.5);
    box-shadow: 0 14px 12px rgba(0, 0, 0, 0.5);
}

.wrap img {
    width: 100%;
    margin-top: 15px;
}

/* end results box for timezoneconverter */









/* Start for latest wrap */

.latestwrap {
    -webkit-border-radius: 8px;
    -moz-border-radius: 8px;
    -ms-border-radius: 8px;
    -o-border-radius: 8px;
    border-radius: 8px;
    -webkit-box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
    -moz-box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
    display: -moz-inline-box;
    -moz-box-orient: vertical;
    background: #EBEBEB;
    border: 1px solid #CCC;
    margin: 20px auto;
    position: relative;
    padding: 20px 10px 10px;
}

.noise {
    position: relative;
    z-index: 1;
}
        
.noise:before, .body-noise:before {
    content: "";
    position: absolute;
    z-index: -1;
    top:0;
    bottom:0;
    left:1px;
    right:0;
    background-image: url(data:image/png;base64,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);
    
    
    }
/*
.horiz-flag {
    -webkit-box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.35);
    -moz-box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.35);
    box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.35);
    background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #9FBFDC), color-stop(100%, #3C74A6));
    background-image: -webkit-linear-gradient(#9FBFDC, #3C74A6);
    background-image: -moz-linear-gradient(#9FBFDC, #3C74A6);
    background-image: -o-linear-gradient(#9FBFDC, #3C74A6);
    background-image: -ms-linear-gradient(#9FBFDC, #3C74A6);
    background-image: linear-gradient(#9FBFDC, #3C74A6);
    display: -moz-inline-box;
    -moz-box-orient: vertical;
    display: inline-block;
    vertical-align: middle;
    height: 40px;
    line-height: 40px;
    position: absolute;
    padding-right: 40px;
    left: -2px;
    padding-left: 10px;
    top: 15px;
    color: white;
}

.horiz-flag::before {
    content: '';
    display: block;
    height: 0;
    border-style: solid;
    border-width: 20px;
    border-color: transparent;
    border-right-color: #EBEBEB;
    position: absolute;
    right: -1px;
    top: 0;
}
*/
.latestwrap img {
    width: 100%;
    margin-top: 50px;
}

.latestwrap h1{
	margin-top: 10px;
    font-size: 20px;
    font-weight: bold;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.latestcontent {
	margin: 50px 50px 20px 50px;
    text-align:left;
}

/* End for latest wrap */

/* GRID LAYOUT */
#journeylist, #recentitineraries {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
    padding: 0;
    margin: 0;
    list-style: none;
}

/* CARD */
.journey-card {
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #e5e5e5;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.journey-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 22px rgba(0,0,0,0.18);
}

.journey-card-link {
    text-decoration: none;
    color: inherit;
}

.journey-card-link:hover {
    text-decoration: none;
    color: inherit;
}

.journey-card-link * {
    text-decoration: none !important;
}

/* THUMBNAIL */
.journey-thumb {
    height: 160px;
    background-size: cover;
    background-position: center;
    position: relative;
}

/* OVERLAY GRADIENT */
.journey-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.0), rgba(0,0,0,0.35));
}

/* CONTENT */
.journey-content {
    padding: 14px 16px 18px;
}

/* TITLE */
.journey-title {
    font-size: 1.15em;
    font-weight: 700;
    color: #004aad;
    text-decoration: none;
}

/* INFO */
.journey-info {
    margin-top: 10px;
    font-size: 0.9em;
    color: #444;
    line-height: 1.5em;
}

.journey-info i {
    margin-right: 6px;
    color: #777;
}

.journey-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #004aad0d, #ffffff);
    padding: 16px 12px;
    border-radius: 10px;
    border-left: 4px solid #004aad;
    padding-left: 14px;
    margin: 20px 0 30px 0;
}

.journey-controls-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-btn {
    background: #004aad;
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
    transition: background .2s, transform .2s;
}

.header-btn:hover {
    background: #0060e6;
    transform: translateY(-2px);
}

#journeyname {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.25;
    color: #1f2937;
    padding: 4px 0;
    transition: border-color .25s ease, color .25s ease;
}

#journeyname:focus {
    outline: none;
    color: #004aad;
    border-bottom: 2px solid #004aad;
    box-shadow: 0 2px 0 #004aad;
}

/* Toggle Switch */
.private-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.private-toggle input {
    display: none;
}

.private-toggle .slider {
    width: 40px;
    height: 20px;
    background: #ccc;
    border-radius: 20px;
    position: relative;
    transition: background .2s;
}

.private-toggle .slider::before {
    content: "";
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: transform .2s;
}

.private-toggle input:checked + .slider {
    background: #004aad;
}

.private-toggle input:checked + .slider::before {
    transform: translateX(20px);
}

.private-toggle .label-text {
    font-size: 14px;
    color: #374151;
}

/* PAGINATION */
#pagination {
    margin-top: 20px;
    text-align: center;
}

#pagination .page-btn {
    padding: 8px 14px;
    margin: 0 4px;
    border: 1px solid #ccc;
    background: #f8f9fa;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

#pagination .page-btn:hover {
    background: #e9f0ff;
    border-color: #99b7ff;
}

#pagination .page-btn.active {
    background: #004aad;
    color: white;
    border-color: #004aad;
    font-weight: bold;
}

#pagination .ellipsis {
    display: inline-block;
    padding: 8px 10px;
    color: #666;
    font-size: 14px;
}









/* --------------------------------------------------
   MODERN ITINERARY CARD (Overrides legacy styles)
-------------------------------------------------- */

.itineraryday {

    border-radius: 14px !important;
    padding: 15px 24px !important;
    margin: 12px auto !important;
    border: 1px solid #e5e5e5 !important;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08) !important;
    display: block !important;
    position: relative !important;
    overflow: hidden;
    background-color: #cdcdcd;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

}

/*
.itineraryday {
    position: relative;
    overflow: hidden;
    background-color: #fff;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
*/
/* White overlay to fade the image */
.itineraryday::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.82); /* adjust opacity for more/less fade */
    z-index: 0;
    pointer-events: none;
}

/* Ensure content stays above overlay */
.itineraryday > * {
    position: relative;
    z-index: 1;
}


/* Remove legacy noise texture */
.latestwrap .noise,
.latestwrap .noise::before,
.body-noise::before {
    display: none !important;
}

/* Remove old ribbon banner entirely */
.horiz-flag,
.horiz-flag::before {
    display: none !important;
}

/* --------------------------------------------------
   ITINERARY HEADER
-------------------------------------------------- */

.itinerary-header {
    display: grid;
    grid-template-columns: 160px 1fr auto;
    gap: 16px;
    align-items: center;
    background: linear-gradient(90deg, #004aad, #0077ff);
    color: white;
    padding: 14px 18px;
    border-radius: 10px;
}

.itinerary-title-header {
    display: flex;
    justify-content: center;
}

.itinerary-row {
    display: flex;
    gap: 20px;
    width: 100%;
}

.itinerary-row {
    display: flex;
    width: 100%;
    gap: 20px;
    align-items: flex-start;
}

.itinerary-address {
    flex: 1; /* takes all remaining space */
}

.itinerary-cost {
    width: 100px; /* fixed width */
    flex-shrink: 0; /* prevents shrinking */
}

.itinerary-title-inline {
    font-size: 16px;
    font-weight: 600;
    padding: 6px 10px;

    border-radius: 6px;
    min-width: 200px;
}

.itinerary-title-inline:focus-within {
    background: rgba(255,255,255,0.25);
    outline: 2px solid rgba(255,255,255,0.4);
}

/* Buttons inside header */
.itinerary-actions .btn {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
}

/* --------------------------------------------------
   ITINERARY BODY
-------------------------------------------------- */

.itinerary-body {
    margin-top: 10px;
}

.itinerary-label {
    font-weight: 600;
    margin-top: 16px;
    margin-bottom: 6px;
    font-size: 15px;
}
/*
.itinerary-field {
    background: #f8f9fc;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid #e2e6ef;
    min-height: 42px;
    font-size: 15px;
    line-height: 1.5;
opacity: 0.5;
}
*/
.itinerary-field {
    position: relative;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid #e2e6ef;
    min-height: 42px;
    font-size: 15px;
    line-height: 1.5;
    background: transparent; /* important */
    z-index: 1;
}

/* Faded background layer */
.itinerary-field::before {
    content: "";
    position: absolute;
    inset: 0;
    background: #f8f9fc;
    opacity: 0.25; /* fade level */
    border-radius: inherit;
    z-index: -1;
    pointer-events: none;
}

.itinerary-field:focus-within {
    background: #ffffff;
    border-color: #99b7ff;
    box-shadow: 0 0 0 2px rgba(0,102,255,0.15);
}

/* --------------------------------------------------
   LINKS
-------------------------------------------------- */

.itinerary-maps-link {
    margin-top: 10px;
}

.itinerary-maps-link a {
    color: #004aad;
    font-weight: 600;
    text-decoration: none;
}

.itinerary-maps-link a:hover {
    text-decoration: underline;
}

/* --------------------------------------------------
   FIX BOOTSTRAP GRID CLASSES (you are not using Bootstrap)
-------------------------------------------------- */

[class^="col-md"] {
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}



/* --------------------------------------------------
   TOP CONTROL BUTTONS
-------------------------------------------------- */

.journey-controls {
    display: flex;
    gap: 14px;
    margin: 20px 0 25px;
    flex-wrap: wrap;
}

.control-btn {
    padding: 10px 18px;
    background: #004aad;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s, transform 0.15s;
}

.control-btn:hover {
    background: #0060e6;
    transform: translateY(-2px);
}

.control-btn.danger {
    background: #b30000;
}

.control-btn.danger:hover {
    background: #d10000;
}

/* --------------------------------------------------
   PANELS
-------------------------------------------------- */

.panel {
    background: #ffffff;
    border-radius: 12px;
    padding: 22px 26px;
    margin-bottom: 25px;
    border: 1px solid #e5e5e5;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

.panel-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 18px;
    color: #004aad;
    display: flex;
    align-items: center;
    gap: 10px;
}

.panel label {
    font-weight: 600;
    margin-top: 12px;
    display: block;
}

.panel-input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #d0d7e2;
    margin-top: 6px;
    margin-bottom: 14px;
    font-size: 15px;
}

.panel-input:focus {
    border-color: #99b7ff;
    box-shadow: 0 0 0 2px rgba(0,102,255,0.15);
    outline: none;
}

.panel-btn {
    padding: 10px 18px;
    background: #0077ff;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s, transform 0.15s;
}

.panel-btn:hover {
    background: #005fd1;
    transform: translateY(-2px);
}

.panel-link {
    display: inline-block;
    margin-top: 12px;
    color: #004aad;
    cursor: pointer;
    text-decoration: none;
}

.panel-link:hover {
    text-decoration: underline;
}



/* Modern Search Field */
#journeysearch {
    width: 100%;
    padding: 10px 14px 10px 40px;
    border-radius: 10px;
    border: 1px solid #d0d7e2;
    background: #ffffff url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/svgs/solid/magnifying-glass.svg') no-repeat 12px center;
    background-size: 16px;
    font-size: 15px;
    transition: all 0.25s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    margin-bottom: 10px;
}

#journeysearch:focus {
    border-color: #99b7ff;
    box-shadow: 0 0 0 3px rgba(0,102,255,0.15);
    outline: none;
    background-color: #ffffff;
}

#journeysearch::placeholder {
    color: #888;
    font-size: 14px;
}

/* Collaborators Panel */

#collaborators-panel {
    margin-top: 20px;
}

#collaborators-list {
    margin-bottom: 15px;
}

.collab-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e5e7eb;
}

.collab-email {
    font-size: 15px;
    color: #374151;
}

.collab-remove {
    color: #b91c1c;
    cursor: pointer;
    font-size: 14px;
}


/* --------------------------------------------------
   LOADING SPINNER
-------------------------------------------------- */
.loading-spinner {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: #004aad;
    color: white;
    padding: 12px 18px;
    border-radius: 50px;
    font-size: 20px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.25);
    z-index: 9999;
}

/* --------------------------------------------------
   BACK TO TOP BUTTON
-------------------------------------------------- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #004aad;
    color: white;
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0,0,0,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
    z-index: 9999;
}

.back-to-top:hover {
    background: #0060e6;
    transform: translateY(-3px);
}

/* Edit Mode Badge */
.edit-mode-badge {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(255, 200, 0, 0.95);
    color: #000;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    box-shadow: 0 0 12px rgba(255, 200, 0, 0.9),
                0 0 24px rgba(255, 200, 0, 0.6);
    z-index: 9999;
    display: none;
    animation: glowPulse 2s infinite ease-in-out;
}

/* Soft pulsing glow */
@keyframes glowPulse {
    0%   { box-shadow: 0 0 12px rgba(255, 200, 0, 0.9); }
    50%  { box-shadow: 0 0 22px rgba(255, 200, 0, 1); }
    100% { box-shadow: 0 0 12px rgba(255, 200, 0, 0.9); }
}



.index-header-image {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 20px auto;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}

.index-header-image img {
    width: 100%;
    height: auto;
    display: block;
}

.index-header-image {
    position: relative;
}

.index-header-image::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.0),
        rgba(0, 0, 0, 0.25)
    );
}

.index-header-image-full {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 20px;
    margin-top: 20px;
    display: block;
    border-radius: 14px;
    overflow: hidden;
    position: relative;

    /* Subtle premium drop shadow */
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.index-header-image-full img {
    width: 100%;
    height: auto;
    display: block;
}


.fade-in {
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 1s ease-out forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.view-album-btn {
    background: none;
    border: none;
    color: var(--text);
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
    font-weight: 600;
}

.total-cost-bar {
    background: #1e1e1e;
    color: #fff;
    padding: 12px 20px;
    font-size: 20px;
    font-weight: 600;
    border-radius: 8px;
    margin: 15px 0;
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}


.toast-message {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(40px);
    background: var(--card-bg);
    color: var(--text);
    padding: 14px 22px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
    opacity: 0;
    pointer-events: none;
    transition: all .35s ease;
    z-index: 99999;
}

/* Visible state */
.toast-message.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Dark mode override */
.dark-mode .toast-message {
    background: #2a2a2a;
    color: #fff;
    box-shadow: 0 6px 18px rgba(0,0,0,0.6);
}

.shared-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    font-size: 12px;
    background: #ff9800;
    color: #fff;
    border-radius: 6px;
    font-weight: 600;
    vertical-align: middle;
}

.shared-badge-thumb {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #ff9800;
    color: #fff;
    padding: 4px 10px;
    font-size: 12px;
    border-radius: 6px;
    font-weight: 600;
    z-index: 5;
}

/* Ensure journey-thumb can position children */
.journey-thumb {
    position: relative;
}

/* Dark mode override */
.dark-mode .shared-badge {
    background: #ffa726;
    color: #000;
}

.dark-mode .shared-badge-thumb {
    background: #ffa726;
    color: #000;
}

/* modal */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.55);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-box {
    background: #fff;
    padding: 25px;
    width: 320px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
    animation: modalPop 0.25s ease-out;
}

@keyframes modalPop {
    from { transform: scale(0.85); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}

.modal-body {
    font-size: 15px;
    margin-bottom: 20px;
    color: #444;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.modal-btn {
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    border: none;
    font-size: 14px;
}

.modal-btn.confirm {
    background: #4caf50;
    color: #fff;
}

.modal-btn.cancel {
    background: #ddd;
    color: #333;
}

.copy-loader {
    text-align: center;
    font-size: 15px;
    margin-bottom: 15px;
    color: #444;
}

.copy-loader i {
    margin-right: 6px;
}

.dark-mode .copy-loader {
    color: #ddd;
}

.modal-btn.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.dark-mode .modal-box {
    background: #2a2a2a;
    color: #eee;
}

.dark-mode .modal-btn.cancel {
    background: #444;
    color: #ccc;
}

.dark-mode .modal-body {
    color: #fff;
}

